Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking a procedure on a control on a form
Message
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:
01003398
Views:
15
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform