Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invoking a procedure on a control on a form
Message
De
11/04/2005 12:14:29
 
 
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:
01003398
Vues:
21
>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



Try

In Init Event of the TForm
LOCAL oTxt
oTxt = BaseArti()
Thisform.text1.Value = oTxt.ArtiKey
Thisform.text2.Value = oTxt.Supplier



**** Function  BaseArti()
FUNCTION BaseArti()

  LOCAL oEmpty
  oEmpty = CREATEOBJECT("Empty")
  ADDPROPERTY(oEmpty,"ArtiKey","F*0001")
  ADDPROPERTY(oEmpty,"Test2","ZOOM")

RETURN oEmpty
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform