Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox() syntax
Message
De
25/08/2005 17:21:11
 
 
À
25/08/2005 13:45:22
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01043981
Message ID:
01044092
Vues:
15
>hmm, It works in 6 the same way as 8.
>
>Everything after the end paren is ignored.

It is not ignored, it's executed.

Create a small .PRG and call it EXTRA.PRG:

WAIT WINDOW "Extra"

Now if you execute:
MessageBox("Hello!"),extra()
You'll see the message box "Hello", and once it's dismissed you'll see the wait window "extra". Fox has always had the ability to chain multiple functions on a single line, but you can't have any return value for any of them. It appears you can't do any assignments of commands, only function calls.
MessageBox("Hello!"),ADIR(ax)
DISPLAY MEMORY LIKE ax
You can then examine the value of the array ax that was created.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform