Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement