Declarations in the VB module are converted to declarations in the form

Updated on technology 2024-02-08
12 answers
  1. Anonymous users2024-02-05

    option explicit statement.

    Used at the module level to force all variables in the module to be explicitly declared.

  2. Anonymous users2024-02-04

    Declarations for standard modulesDeclarations in standard modules You have to add a module first.

    Form module declarations are to be declared in the form's Generic --Declarations.

    A class module is the same as a standard module, and to declare it in a class module, you have to add a class module first.

  3. Anonymous users2024-02-03

    A new module can be declared, just like the others.

  4. Anonymous users2024-02-02

    It's all in the head, in the module, in the form, the head of the class module is written clearly.

  5. Anonymous users2024-02-01

    Just add the module where you added the form.

  6. Anonymous users2024-01-31

    Click the button in the upper left corner of the standard module to select the standard module The form declaration area is the area above the form load, and you can also select the general and declaration through the two selection boxes.

    Remember to adopt it.

  7. Anonymous users2024-01-30

    The public functions in the module can be called in any form, do you have any difficulties?

  8. Anonymous users2024-01-29

    If there is an option explicit statement at the beginning, put it underneath.

    If not, it's the front of the form area.

  9. Anonymous users2024-01-28

    General Notices section.

    Double-click on the control to go to the "General Declarations Section".

  10. Anonymous users2024-01-27

    The first y can be called in various procedures.

    The second can only be used in its own process.

    dim x as integer

    private sub command1_click()print x

    print y

    end sub

    private sub form_load()dim y as integer

    x = 2y = 3

    end sub

  11. Anonymous users2024-01-26

    One is a global variable and one is a local variable.

  12. Anonymous users2024-01-25

    First of all, make sure that the declaration of the function is public, that is, public, if it is private, it will not work. Then, in the form, you can use it in the following way: module name. Function name, if you hope it helps.

Related questions
10 answers2024-02-08

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

6 answers2024-02-08

abs function: calculates the absolute value.

rnd function: Returns a single-precision number containing a random value. Without parameter, it is a decimal between 0 and 1. >>>More

6 answers2024-02-08

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

5 answers2024-02-08

Try my way:

Create a text on the form, and a command1 >>>More

10 answers2024-02-08

With there seems to be nothing simplified at present.,This was originally Qiaosen for the sake of simplicity to write Min Pai Mu.。 The main thing is not knowing the specifics. >>>More