>>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