|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Tue May 28, 2002 10:43 pm
dumb ?: how do i remove text string from variables |
im not sure if this is right: variable @arena has the text "Testing" in it
to remove is #var arena %delitem("testing",@arena)?
if this is incorrect can you please tell me what the correct command is?
thank you! |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue May 28, 2002 10:54 pm |
That would work however the command is case-sensetive, so you must match case exactly.
|
|
|
|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Tue May 28, 2002 11:05 pm |
trigger: pattern: testing
command: #ad @arena testing
#forall @arena (#win arena %i)
this will put the text "testing" into a second window
new trigger: pattern: testing is done
command: :arena:#clr
#var arena %delitem( "testing", @arena)
#ad arena testing is over with
#FORALL @arena {#WIN arena %i}
this should clear the window named arena, remove the text "testing" from the variable @arena, put the text "testing is over with" into the variable @arena and send it to the window named arena
if this is incorrect please let me know what is wrong with the command line
thanks! |
|
|
|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Tue May 28, 2002 11:40 pm |
NVM :0 i figured it out
Kevin W. Steele |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed May 29, 2002 2:55 am |
#ADd is not the same as #ADDItem
LightBulb
Vague questions get vague answers |
|
|
|
|
|