Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return result from form created with CreateObject
Message
De
20/02/2008 17:36:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01294492
Message ID:
01294513
Vues:
14
>I usually create forms using the form designer, and run them with the DO FORM command. So, I am familiar with passing arguments into the form via that command, and obtaining results from the form:
>
>When I use the DO FORM command, the form returns its result from the Unload method: "RETURN thisform.Result"
>
>However, I have recently created a form class that I want to instantiate and run via CreateObject(). I know that I can pass parameters into the form in the arguments in the call to CreateObject(). But, how do I get a result back from the form?
>
>Thanks,
>Jim
Local loForm
loForm = createobject("myForm")
loForm.Show(1)

luReturn = loForm.ReturnValue && or get anyhting from that form that is public like a text.value
release loForm
* In form instead of release call thisform.Hide() to let the code continue

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform