Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking a procedure on a control on a form
Message
 
To
11/04/2005 13:30:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003336
Message ID:
01003461
Views:
14
My suggestion was the whole point, avoid public variables at all cost, as it is bad programming practice.


>Hi, Mike,
>
>I think you looked at this wrong. They are not returning any value. They are just setting two variables in the procedure (from the looks of it, pubic variables).
>
>>Although you can return two values for the function, in this case it would be advisable to use a separate function for the text2 value, similar to the first one.
>>
>>
>>>Thankyou Mike,
>>>
>>>Just out of interest mike what if I had another variable that I wanted to store to a text2 field.
>>>
>>>
>>>PROCEDURE basearti()
>>>	STORE "F*0001" TO cArtikey
>>>        STORE "ZOOM" to cSupplier
>>>ENDPROC
>>>
>>>
>>>Therefore I wanted cArtikey in Text1 field and cSupplier in Text2 field.
>>>
>>>Many Thanks for your help
Previous
Reply
Map
View

Click here to load this message in the networking platform