Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browse, left vs right alignment
Message
From
01/06/2015 04:10:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01620417
Message ID:
01620430
Views:
62
>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

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform