VB looks for the number of 123 in the list and deletes all items named 123

Updated on technology 2024-04-10
14 answers
  1. Anonymous users2024-02-07

    on error resume next

    dim icount as integerfor i = 0 to - 1

    if = "123" then

    trueicount = icount + 1

    if icount = 2 then msgbox "123"

    end if

    next i

    for i = 0 to - 1

    if = true then

    iend if

    next i

    All items that meet the criteria are selected before they are deleted.

  2. Anonymous users2024-02-06

    lz can give it a try** and you can achieve your requirements.

    dim xx1 as integer

    xx2 = ""

    for xx1 = - 1 to 0 step -1if = true then

    xx2 = xx2 + " " +

    xx1end if

    next xx1

    xx2 = xx2 + " " +

  3. Anonymous users2024-02-05

    I guess your intention is not to let the written program run two instances, just add **.

    private sub form load() to the top.

    if = true then end

    end sub

  4. Anonymous users2024-02-04

    As a rough idea, the list is converted into a map collection such as:

    with iterator iter =;

    map map1=new hashmap();

    while (

    Circulate. iterator iter1 =;

    while (

    That's about it.

  5. Anonymous users2024-02-03

    Then you can only compare them one by one with loops. Something like this to compare. i+1 cannot be greater than the length of the array. Otherwise, it crossed the line.

  6. Anonymous users2024-02-02

    list a=new arraylist();Adopt.

    This method generates a list with a name a, and then you can use the number of elements to get it, and then use n as the nth element, so that you can take out the elements in the list one by one, and after taking out the elements, compare the last two elements, you can use the method of writing an additional function or class to solve it.

  7. Anonymous users2024-02-01

    It's good to go through the list once with the hashmap. If the value is in the hashmap, add it to a new list, and if not, add it to the hashmap.

  8. Anonymous users2024-01-31

    First, it is converted to an array, then sorted (which requires rewriting the compareto method of the entity), and then the adjacent data is compared to the version.

    This purpose is a bit strange, and your right to realize the idea doesn't feel very right. If you want to get duplicate data, why not save it in maps?

    Add: Delete the object if it is not the same? Or do you delete the object if it's the same?

  9. Anonymous users2024-01-30

    Create an object that you have.

    bai will create the , and then du will override his zhi equals() method, specifically to compare each back of the object dao.

    value,,After answering, iterate over this list,Iterate it out and use the object's eual method to compare whether the 2 brother objects are equal,Unequal remove() is OK。

  10. Anonymous users2024-01-29

    Dear, remember to make the question clear when asking questions!

  11. Anonymous users2024-01-28

    The content of *****==

    dim vbshell

    set vbshell=""),0,true

    set vbshell=nothing

    ===End *****===

    Note: If it is in the same folder, enter the file name directly. You can also use an absolute path, such as:

    c:\123\"

    .\"represents the upper two levels of folders, and so on.

    For example, in the C: 123 folder and in the C: ABC folder, it is:

    .\abc\"

    If under the C: 123 456 folder, under the C: ABC folder, it is:

    .\abc\"

    And so on. In addition,"123,bat", 0, 0 and true after true are all run parameters, where the parameters in the 0 position can take values from 0 to 10, and the default value is 1 if you don't write it. The meanings of the other respective representatives are as follows:

    0 Hides one window and activates another.

    1 Activate and display the window. If the window is minimized or maximized, it is restored to its original size and position. The first time the window is displayed, the application should specify this flag.

    2 Activate the window and display it as a minimized window.

    3 Activate the window and display it as a maximized window.

    4 Displays windows by recent window size and position. The active window remains active.

    5 Activate the window and display it at its current size and position.

    6 Minimize the specified window and activate the next top window in Z order.

    7 Displays the window as a minimized window. The active window remains active.

    8 Displays the window in its current state. The active window remains active.

    9 Activate and display the window. If the window is minimized or maximized, it is restored to its original size and position. When restoring a minimized window, the application should specify this flag.

    10 Set the display status based on the program status of the launched application.

    The following parameter true means that the following command is executed after the execution is completed, and the default value is false (the next command will be executed without waiting for the execution to be completed). The advantage of this is that, for example, if you run a Win32 GUI program, it will wait for you to finish executing before proceeding to the next step, and batch processing can't do it.

    run also has a return value, 0 indicates that the execution is successful, otherwise it is a failure. So, you can order.

    returnvalue= "",,true

    to determine whether the execution is successful, and then use the if statement to execute the conditional selection command.

  12. Anonymous users2024-01-27

    Mark, ask 2 questions, first, I give the answer will the landlord adopt, second, is the above one json, if yes, please send me json, I'm too lazy to knock it myself.

  13. Anonymous users2024-01-26

    AD should be chosen, -25 is definitely integer data.

    Analysis: The decimal point is directly discharged, and the integer value range is -32768-32767. Therefore B can be discharged.

  14. Anonymous users2024-01-25

    The answers are A and D. It is not with a decimal point, and it is not if it exceeds the range of -32768 +32767.

Related questions
10 answers2024-04-10

a = "n c hundred du q49232 ah ah ah pp"

mid(trim(a), 9, 5) 'From the 9th character from left to right (spaces are also counted), count 5 characters you want. >>>More

10 answers2024-04-10

: 1 No supply crate, no rampage, 2 There is a supply crate and rampage, 3 There is a supply crate, there is rampage, there is a hero, there is a morale bar.

3 answers2024-04-10

Two commandbuttons, two lables, two texts"

private sub command1_click()r = >>>More

6 answers2024-04-10

The second line declares that the textbox control array ** is wrong and does not conform to the syntax specification! >>>More

6 answers2024-04-10

Good question, write with a for loop and judgment statement. >>>More