Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do form ...
Message
From
07/06/2002 07:36:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/06/2002 07:29:30
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00665852
Message ID:
00665858
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Hi
>
>How can i do :
>
>DO FORM Form2 WITH par1 , par2 TO cVar1 , cVar2
>
>I want have two return values , cVar1 , cVar2 .
>
>Thanks

Pedro,
A modal form could return only one value but that could be an object too.
There are muoltiple ways :
1)
DO FORM Form2 WITH par1 , par2 TO cVarAll
cVar1 = substr(cVarAll, 1, at('_',cVarALl)-1)
cVar2 = substr(cVarAll, at('_',cVarALl)+1)

2)
store "" to cVar1,cVar2
DO FORM Form2 WITH par1 , par2

3) oCargo=CreateObject('Session') && or Relation
oCargo.Addproperty("cVar1","")
oCargo.Addproperty("cVar2","")
DO FORM Form2 WITH par1 , par2, oCargo

4)
create cursor dummy (cVar1 c(1), cVar2 c(1))
scatter name oCargo
use in 'dummy'
DO FORM Form2 WITH par1 , par2, oCargo

etc
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
Reply
Map
View

Click here to load this message in the networking platform