String Type Members not working and/or me dumb

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
Placemate
GamingTools Subscriber
Posts: 16
Joined: Wed Oct 13, 2004 12:54 pm

String Type Members not working and/or me dumb

Post by Placemate » Wed Mar 30, 2005 9:30 pm

For the life of me I can't get Mid, Arg or Token to work

declare msg local string "will you please work"
echo ${msg.Left[5]} <-- works fine
echo ${msg.Right[6]} <--- works fine
echo ${msg.Mid[2,5]} <--- returns NULL
echo ${msg.Arg[1, ]} <--- returns NULL
echo ${msg.Arg[1," "]} <--- returns NULL
echo ${msg.Arg[1]} <--- returns NULL

Not quite sure on syntax for Arg.

Any thoughts?

Testing in WoW with ISXWoW if it matters, but I figured this is a lavishscript issue.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Wed Mar 30, 2005 9:40 pm

http://www.lavishsoft.com/wiki/index.ph ... ype:string

Those 3 say "not yet implemented" ;)

I'll get the implemented tonight, nobody had asked for them so I never got around to it

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Wed Mar 30, 2005 10:35 pm

Done. Mid and Token are now valid members of string, and Arg is now a Top-Level Object.

${Arg[1,one]} gives "one", ${Arg[2,one,two,three]} gives "two"

Placemate
GamingTools Subscriber
Posts: 16
Joined: Wed Oct 13, 2004 12:54 pm

Post by Placemate » Wed Mar 30, 2005 11:16 pm

Rofl, that would explain it.

Super fast fix, many thanks.

Post Reply