Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Records on Messagebox
Message
From
25/09/2005 22:28:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
25/09/2005 21:59:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052903
Message ID:
01052906
Views:
10
>Hi to All
>
> Is't posiible to view the records of a table in a messagebox? if possible how?
>
>TIA,
>Ryan

I don't think there is a specific command for this, but you can create a string that shows the information you are interested in. For example:
MyText = ""
scan
  MyText = MyText + alltrim(Field1) + space(3)
endscan
MessageBox(MyText)
Beware - if your table is large, you may have trouble with the MessageBox.

As alternatives to show data, an old-fashioned command is BROWSE NOMODIFY. A more modern approach would be to create a form with a Grid, and make it as generic as possible, so that you can show any specified table. But this may be a little tricky with private datasessions.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform