Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browse, left vs right alignment
Message
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:
01620454
Views:
42
BROWSE FIELDS debit :P = '99,999.99' name oGrid   nowait  && add nowait, now works
oGrid.Columns[1].alignment=1  && is there a reference that shows which numbers to use with alignment, to make thing right or left aligned
>I have tried this code but am not sure how to use it
>
>
>BROWSE FIELDS debit :P = '99,999.99' name oGrid   && this line works
>oGrid.Columns[1].alignment=1  && here vfp says: "oGrid is not an object"
>
>
>how can I define oGrid as an object?
>
>Thanks,
>Steve
>
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform