Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invoking a procedure on a control on a form
Message
 
À
11/04/2005 13:30:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01003336
Message ID:
01003461
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform