Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browse with original field caption
Message
From
23/02/2000 08:46:00
 
 
To
23/02/2000 08:39:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00335913
Message ID:
00335937
Views:
26
And I did....here it is:
*BROWSEX.PRG
cExpr=""
FOR i = 1 TO FCOUNT()
   cExpr=cExpr+FIELD(i)+":H='"+FIELD(i)+"',"
ENDFOR
cExpr=LEFT(cExpr,LEN(cExpr)-1)
BROWSE FIELDS &cExpr
Just use the table and then DO BROWSEX.



>I think I can automate it....I'll write that code and post it in a few minutes.
>
>>Hi John
>>Ok it's Work but it's for desine time so if the table add 30 fields it may be a little bit long to type that...
>>
>>Do you have another idea ?
>>
>>Thank's
>>Rock
>>
>>
>>>Not directly, but you can use :H to specify the header as the field name as is BROWSE myfield1:h=FIELD(1),myfield2:h=FIELD(2)
>>>
>>>>Do you Know if it's possible when you make a browse to force fox to use the original field name for the column instead of the Caption field in the DBC
>>>>
>>>>Thank's in Advance...
>>>>Rock
------------------------------------------------
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