Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a Form as a Function
Message
De
24/12/2001 14:59:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00597953
Message ID:
00597985
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>In a previous life I wrote many functions and compiled them into a library that I could link into my exe. Now in VFP6, I created a form (timed messagebox) and have it in my custom library as a form. But I don't like the way I have to call the form with a Do Form msgbox with manyparameters.
>
>Is there a way to take a form and call it as a function?, or do I have to list out the form code in a function and put it in my program with a Set Procedure to...
>
>I want to just say
>
>If msgbox("Do you want to continue","user message","YesNo",5) = "Yes".....
>
>Any help would be appreciated.

You can take a look at file #9445, or use it as it is. The syntax is slightly different:

if Alert("Do you want to continue","Yes;No")=1

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform