Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any way to browse a table without field caption
Message
De
25/08/1998 14:17:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00129442
Message ID:
00129808
Vues:
34
Hi Gil ----

>Yeah, that's the whole idea. But the goal of my request is to be able to browse the table and read the field name on the column header because I don't know what those field names are.
>
*mybrowse.app
LPARAMETERS cTable
LOCAL i,cBrowseString
IF !USED(cTable)
   USE (cTable) IN 0
ENDIF
cBrowseString="FIELDS "
SELECT (cTable)
FOR i = 1 TO FCOUNT(cTable)
   cBrowseString=cBrowseString+FIELD(i)+":H"+FIELD(i)
   IF i < FCOUNT(cTABLE)
      cBrowseString=cBrowseString+","
   ENDIF
ENDFOR
BROWSE &cBrowseString
RETURN
Now type MyBrowse {tablename} from command window
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform