browse default right justified

Post Reply
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

browse default right justified

Post by hag »

Auto Right justified does't seem to work in xbrowse if using trans() in the browse. Just wanted to let you know.
It seems to center the picture.

hag
Thank you
Harvey
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Post by nageswaragunupudi »

XBrowse automatically right justifies if the Data is of numeric or date type, if we "ALLOW" xbrowse to know the correct data type.

When you have used Transform( yourdata, yourpicture), you have already converted the data into a character data. Therefore XBrowse sees it as character data only. You have never given an opportunity to XBrowse to know the real data type.

Actually, with XBrowse there is no need to convert the data into character value like for other browses.

Straight away provide your data as it is to xbrowse. If you want, provide the picture in the picture clause. XBrowse then knows the correct data type and intellgently invokes other features. Please remove all Tranforms and just provide the data.

Example:
ADD TO oBrw <expression> PICTURE '999,999.99' HEADER <header>

If you are assigning to individual codeblocks in the OOPS style, never directly assign to bStrData. Instead

oCol := oBrw:AddCol()
oCol:bEditValue := { || alias->fieldname }
oCol:cEditPicture := "999,999.99"
Regards

G. N. Rao.
Hyderabad, India
Post Reply