Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse, left vs right alignment
Message
 
À
01/06/2015 04:10:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01620417
Message ID:
01620452
Vues:
38
Wow. thanks!

>>Hello, Is it possible to contol whether the text will be left or right aligned with the browse command?
>>I see that browse has P: as in
>>
>>BROWSE FIELDS unit_price :P = '99,999.99'  
>>
>>So, I wondered if there was a way to specify right or left alignment as well?
>
>In the browse command per se, no, because the available switches are
>FieldName1
>
   [:R] 
>   [:nColumnWidth]
>   [:V = lExpression1 [:F] [:E = cMessageText]]
>   [:P = cFormatCodes] 
>   [:B = eLowerBound, eUpperBound [:F]]
>   [:H = cHeadingText]
>   [:W = lExpression2]
>   [, FieldName2 [:R]...]
>
>But since the browse is always a grid (wouldn't make sense to make a separate control just for it), you can get a reference to that grid, using the Name clause:
>
>
   BROWSE FIELDS unit_price :P = '99,999.99'  name oGrid
>oGrid.Columns[1].alignment=1
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform