Le Jeudi 30 Juin 2005 15:08, Klaus Major a écrit :
> Bonjour Damien,
>
> > Hi all,
> >
> > I am using runrev 2.6 under linux, and I have a strange bug.
> >
> > I need to get a list of font, and put a tab before each line of the
> > fontlist
> > (is it for a font menu).
> >
> > This is my script :
>
Hi Damien
First, try to not name anything with a number, especially stacks, but
also variables.
Second: Its not good to modify the variable you use in a "repeat for
each" loop (in this case "TheList")
Third: If you want to add one line to a variable it is faster to say
"add one to x" then "put
Bonjour Damien,
Hi all,
I am using runrev 2.6 under linux, and I have a strange bug.
I need to get a list of font, and put a tab before each line of the
fontlist
(is it for a font menu).
This is my script :
put fontnames() into TheList
sort TheList
put "0" into LineToDo
repeat fo
Bonjour Damien,
You use an integer as a variable name :-)
And Rev does not crash: kudos!
May be some more generic approach like the following might help you:
put InsertTab(the fontnames,1) after tMenu
function InsertTab pList,pNumOfTabs
sort pList
repeat for each line tLine in pList
pu
Hi all,
I am using runrev 2.6 under linux, and I have a strange bug.
I need to get a list of font, and put a tab before each line of the fontlist
(is it for a font menu).
This is my script :
put fontnames() into TheList
sort TheList
put "0" into LineToDo
repeat for each line 1 in Th