Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox() syntax
Message
From
25/08/2005 17:21:11
 
 
To
25/08/2005 13:45:22
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01043981
Message ID:
01044092
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform