Ask for help
Moderators: Murderator+ , Murderator
clagio
Posts: 58 Joined: 2004-05-09 19:53:49
Post
by clagio » 2004-11-06 08:24:19
it's possible to split journal message?
example:
clagio: var1 var2 => journal message
var x= var1
var y= var2
clagio
Posts: 58 Joined: 2004-05-09 19:53:49
Post
by clagio » 2004-11-08 14:09:29
noone know?
AGRS
Expert!
Posts: 1007 Joined: 2004-04-04 21:40:09
Contact:
Post
by AGRS » 2004-11-08 14:15:42
I can't understand correct what you want to do.
clagio
Posts: 58 Joined: 2004-05-09 19:53:49
Post
by clagio » 2004-11-08 14:29:03
i have this line in journal :
clagio: hello world
i want to give as value to var1 = "hello" and to var2 = "world"
at this moment i can only give to var1 the value "clagio: hello world"
with easyuo it's possible, but i need to use only injection
Sfagnum
Expert!
Posts: 1284 Joined: 2004-07-04 00:14:58
Contact:
Post
by Sfagnum » 2004-11-08 14:32:04
clagio wrote: i have this line in journal :
clagio: hello world
i want to give as value to var1 = "hello" and to var2 = "world"
at this moment i can only give to var1 the value "clagio: hello world"
with easyuo it's possible, but i need to use only injection
you must do it yourself
AGRS
Expert!
Posts: 1007 Joined: 2004-04-04 21:40:09
Contact:
Post
by AGRS » 2004-11-08 14:44:19
Var TextAll="hello world"
Var TextLeft=Left(TextAll, 5) ; Hello
Var TextRight=Right(TextAll, 5) ; World
clagio
Posts: 58 Joined: 2004-05-09 19:53:49
Post
by clagio » 2004-11-08 14:45:46
how? there are function to split or analyze text string? i didn't see anything in the documentation..
Sfagnum
Expert!
Posts: 1284 Joined: 2004-07-04 00:14:58
Contact:
Post
by Sfagnum » 2004-11-08 14:48:00
clagio wrote: how? there are function to split or analyze text string? i didn't see anything in the documentation..
use functions:
Len
Mid
Left
Right
clagio
Posts: 58 Joined: 2004-05-09 19:53:49
Post
by clagio » 2004-11-08 14:51:28
AGRS wrote: Var TextAll="hello world" Var TextLeft=Left(TextAll, 5) ; Hello Var TextRight=Right(TextAll, 5) ; World
wonderful.. how does these function work? Left and Right..the side where it start to count..
the first parameter is the string, that's ok, the second, is the number of words where from it start to scan..
good!
there are other parameter, or other function like these to manage string?
clagio
Posts: 58 Joined: 2004-05-09 19:53:49
Post
by clagio » 2004-11-08 14:51:58
ok thank you, very much
AGRS
Expert!
Posts: 1007 Joined: 2004-04-04 21:40:09
Contact:
Post
by AGRS » 2004-11-08 14:57:09
Left(string,symbol_count)
Right(string,symbol_count)
Mid(string,position,symbol_count)
Sfagnum
Expert!
Posts: 1284 Joined: 2004-07-04 00:14:58
Contact:
Post
by Sfagnum » 2004-11-08 15:00:38
AGRS wrote: Left(string,symbol_count) Right(string,symbol_count) Mid(string,position,symbol_count)
во блин, пока я расписывал... да проверял написание, ты ответил как всегда лаконично
Yoko
Site Admin
Posts: 1964 Joined: 2004-04-03 16:49:38
Contact:
Post
by Yoko » 2004-11-08 15:02:26
i=0
while fullstr[i]<>" "
i=i+1
wend
newstr=left(fullstr,i)
....
etc, etc