HOW TO GET THE CONTENTS OF THE LISTBOX BACK

Updated on society 2024-02-09
13 answers
  1. Anonymous users2024-02-05

    I don't know what to do.,You keep adding.,Of course it's going to explode.,If it's because it's because of the non-stop addition after submitting the page.。

    Then put the add** of the listbox in !Behind.

    For example: if(!

  2. Anonymous users2024-02-04

    int icount = ;

    for (int i = 0; i < icount;i++).

    Fetch what is displayed.

    Clear the contents of the listbox.

  3. Anonymous users2024-02-03

    Put add() in ispostback and use clear() before add().

  4. Anonymous users2024-02-02

    listitem item = as listitem;

    However, after calling the interlocutor, he and the potato were lost.

  5. Anonymous users2024-02-01

    Use the listbox method to read it!

    Wouldn't it be nice to get ItemText(i) to read in a loop?

  6. Anonymous users2024-01-31

    Loop through the first item of the listbox, an example is as follows:

  7. Anonymous users2024-01-30

    vb can use a loop to obtain the list attribute of the listbox control.

    list property, which returns or sets the item in the list section of the control. A list is an array of strings, and each item in the array is a list item.

    The following ** reads the list property of the listbox control.

    option explicit

    dim i as long

    private sub form_click()for i = 1 to 10

    print 'The first 10 items of the listbox are output next

    end sub

    private sub form_load()dim entry as string 'Declaring variables.

    for i = 1 to 30 'Count values range from 1 to 30.

    entry = "entry " & i 'Create an input.

    entry 'Add the input.

    next i

    end sub

  8. Anonymous users2024-01-29

    private sub command1_click()===

    end sub

    If there are multiple text boxes, use :

    private sub command1_click()dim i as integer

    for i = 0 to - 1

    if left(, 4) = "text" then= , len( -4)) 1)

    end if

    next i

    end sub

    Prerequisite: Your text box name must be the default, text1, text2, text3,。。

    Of course, with an array of controls, you can greatly simplify it.

  9. Anonymous users2024-01-28

    Hello, I suggest you set text as an array of controls.

    Hello, sub command click() can be implemented with a for loop in the command click event

    for i=0 to ubound(listbox)text(i).text=

    next iend

  10. Anonymous users2024-01-27

    When the listbox is added, you can add a value, a text, the text is displayed, and the value is not visible, for example, if you save a person, you can save the person's ID and the person's name, so that you can get the id to uniquely determine a person.

    listitem("Name","id"));

    What is displayed is the "name", which can be used.

    Get a "name".

    Acquired"id"

  11. Anonymous users2024-01-26

    The content must be assigned by the server ** to get it, so your solution will not work.

    You can only get the content of the submitted items, and you can't get the unchecked items.

    However, you can use js to put those items into a hidden variable and get them through request to split them.

  12. Anonymous users2024-01-25

    1.Read the database data first, use the loop, and use it in the loop; That's it

  13. Anonymous users2024-01-24

    You have to bind the listbox to the data source, then store the data in the dataset, and finally use the datareader to loop the data into it.

Related questions
8 answers2024-02-09

Software: VideoStudio or Windows comes with a voice recorder. >>>More

6 answers2024-02-09

The sub-envelope system refers to the grading of grades:

Zhou Tianzi was the king, and below the king were the princes, then the princes, then the doctors, then the scholars, the commoners, and finally the slaves. >>>More

10 answers2024-02-09

datatable operation.

The query is placed in dt1 >>>More

13 answers2024-02-09

To be honest, I don't know what you're going to do, the purpose of the question is not clear. The NTH format is also ZIP standard. nth stands for Nokia Theme. >>>More

32 answers2024-02-09

Passing the blame on to others is a kind of evasion of responsibility and a lack of responsibility. >>>More