Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning value from a form
Message
From
07/08/2007 11:30:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/08/2007 01:32:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01246354
Message ID:
01246501
Views:
44
>After thorough investigation and examining a form from the Samples folder, I learned the variable is created as a Property to the Form! So I created/added a property with a blank value (cMbrID) via the Form menu and problem solved!!!
>
>Question, can this be done via code?
>
>Thanks for your help. (couldn't go to sleep until I figured it out!!! .. *smile*)

thisform.addproperty( 'cMbrId' )

However keep in mind, returning a value from a modal form is generally unnecessary. The caller could directly read one or more values from that form (modal form is called with a name clause and instead of release, hidden with 'hide'). Check:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1291572&SiteID=1

there you'd see sample code showing 2 techniques together.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform