Questions for VB newbites Ask a VB basic question

Updated on educate 2024-05-07
7 answers
  1. Anonymous users2024-02-09

    After opening the error, VB will generate a log file in the same directory, open it with Notepad, and see the name of the control you don't have. Re-open VB, not open the project just now! Check"parts"There are no of those controls in the dialog.

    If you have all of them, it's easy to do, just open the project just now and add them one by one, this kind of problem may be caused by the difference between the project author's machine and yours. If it's not all, update vb to vbsp6 enterprise edition, install access2003, basically solve these problems, if there is still something not loaded, then it is sure to be a third-party control, see if there is any ocx file in the same directory of the project, load this file - control. To be sure, you are reminded to make a copy of the project file beforehand and modify it on the new copy.

    In my experience, the current projects on the Internet can be completely solved according to this method.

  2. Anonymous users2024-02-08

    Isn't it, you try your next SP6?

  3. Anonymous users2024-02-07

    In the VC, the settings are turned on, so the options will be turned on.

  4. Anonymous users2024-02-06

    cThis is a mathematical application of commutative algorithms. Take a simple example: a=5, b=3a=a+b, then a=8, b=3

    b=a-b, then, a=8, b=5

    a=a-b, then a=3, b=5, the exchange is successful.

  5. Anonymous users2024-02-05

    a = a + b

    b = a - b

    a = a - b

    The answer is c, let's look at it step by step:

    Step 1: A = A + B, which is nothing to say, look at (A + B) as a whole, which is the value of A. The value of a is (a + b) and the value of b is b.

    Step 2: b = a - b, just bring in the value of the first step a, and get b = (a + b) -b = a. The value of a is (a + b) and the value of b is a.

    Step 3: A = A - B, put.

    The values of steps 1 and 2 a and b are brought in to get a = (a + b) -a = b. The value of a is b, and the value of b is a.

    So the result of the program is that the values of a and b are swapped with each other.

    In summary: option A is wrong, the values of a and b are the same, and they are both the initial values of b.

    b option is incorrect, bring it in to know.

    The c option is correct, and the intermediate variable t is used, and the values of a and b are reversed.

    The d option is incorrect, regardless of the size of a or b.

    In fact, it is easy to be stunned by so many substitutions, and the best way is to bring in a set of numbers into the experiment, such as a = 1, b = 2.

    I just told someone about this question yesterday.

  6. Anonymous users2024-02-04

    If you need a source program, give the address.

  7. Anonymous users2024-02-03

    I can write it for you, you need to send me a private message.

Related questions
6 answers2024-05-07

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

8 answers2024-05-07

There are many ways to install WindowsXP, and there are usually the following situations: >>>More

5 answers2024-05-07

Most of the decimal places in VB are attributes, such as: >>>More

9 answers2024-05-07

dim i, j as boolean

i = false >>>More

5 answers2024-05-07

Revised at 22:25 on March 8.

1. First make a word document, draw a ** in it, one grid per line, put the text of the title and ** in the same grid, one line per question, do not leave blank lines, and then save it in the project directory and name it "Title." doc”; >>>More