Table field text formating
Andre.Bisseret at inria.fr
Wed Dec 17 13:31:46 CST 2008
Le 17 déc. 08 à 17:02, william humphrey a écrit :
> I keep running into this problem and making work-arounds that are
> not at all
> elegant. It would sure be wonderful if you could set the alignment
> in one
> column of a table field to "right" and the next column in the same
> field to another alignment say "left".
> Is there a way to do this?
In one stack I have a field whose lines are composed of items
delimited by tab.
In order to get each item right aligned I use the following (that I
learned from this list thanks to Jacque Landman Gay if I well
put "8" into theWidth -- or another number of course
REPEAT WITH y = 1 to the number of lines in uneVente --
"uneVente" is a local variable
set the itemdel to tab
REPEAT WITH x = 1 to the number of items in line y of uneVente
IF item x of line y of uneVente is a number THEN
put item x of line y of uneVente into theText
put char 1 to theWidth of theText into theText --
truNcate long strings
put char 1 to (theWidth - the length of theText) of
" " before theText
put theText into item x of line y of uneVente
Then I put « uneVente » into the field.
Not sure in your case but might help (?)
Best regards from Grenoble
More information about the use-livecode