#166170 - 2006-08-21 08:35 PM
Re: Color in a variable
|
maciep
Korg Regular
   
Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
|
I guess that depends on what you're trying to do exactly. But here are two approaches to something like that...
Code:
$red = 'Color r+/n' $ = execute($red) ? 'this should be red'
or
Code:
$red = 'r+/n' color $red ? 'this should be red'
|
|
Top
|
|
|
|
#166171 - 2006-08-21 08:38 PM
Re: Color in a variable
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
You can use variables as parameters to the color command, example:
Code:
Break On
$colors = "N","B","G","C","R","M","Y","W","N+","B+","G+","C+","R+","M+","Y+","W+"
for $i = 0 to ubound($colors)
color $colors[$i]/N
?"The Quick Brown Fox jumped over the Lazy Moon"
Next
Exit 0
-Shawn
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2082 anonymous users online.
|
|
|