Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning data from a form
Message
 
To
21/01/1997 14:54:15
Paul Watson
Mcv Global Systems, Inc.
Pasadena, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00018006
Message ID:
00018013
Views:
39
>I want to allow a user to enter a date range to run some reports. I thought I would create a form and pass it a default start and end date and a form caption. I want the form to return the dates that the user entered. I have created a modal form, the dates and caption are being passed, everything works great. How do I return the dates to my calling program though? I tried DO FORM WITH p1,p2, p3 TO . The problem is that you can only return one value. I made the value an array, but it is only passing the first value in the array.
>

How about encoding the return values into a string, delimited by something like a colon.

eg.
thisform.retvalue = dtos(d1)+':'+dtos(d2)
return(thisform.retvalue)

Then parse the two dates in the receiving program.
Previous
Reply
Map
View

Click here to load this message in the networking platform