Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Records on Messagebox
Message
De
25/09/2005 22:28:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/09/2005 21:59:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01052903
Message ID:
01052906
Vues:
11
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform