Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse with original field caption
Message
De
23/02/2000 08:46:00
 
 
À
23/02/2000 08:39:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00335913
Message ID:
00335937
Vues:
29
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform