Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning data from a form
Message
 
À
21/01/1997 14:54:15
Paul Watson
Mcv Global Systems, Inc.
Pasadena, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00018006
Message ID:
00018013
Vues:
43
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform