Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any way to browse a table without field caption
Message
From
25/08/1998 14:17:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00129442
Message ID:
00129808
Views:
36
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform