Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declaring Function compiling error
Message
 
To
16/11/2000 15:27:41
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00442854
Message ID:
00442979
Views:
8
>>Are you putting the line of code directly in the Form_Load event?
>>
>>Only the call to the function should be placed in the event itself
>>
>>Private Sub Form_Load
>>
>>Function(parameters)
>>
>>End Sub
>>
>>The declaring of the Function is a general declaration. Usually it's put in a seperate module not in the form module itself.
>>
>>
>>Nichole Brelje
>
>Hi Nichole
>
>it does not make sense to me (as a VFPers) but I guess I have to follow the rules, I had to create a module and add the code to the declaration section for it to work.

You don't have to create a module but it needs to be in the General Declarations section (at the top of your form, or class, or ...)
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform