split journal

Ask for help

Moderators: Murderator+, Murderator

Post Reply
clagio
Posts: 58
Joined: 2004-05-09 19:53:49

split journal

Post by clagio »

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 »

noone know? :)
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

I can't understand correct what you want to do.
clagio
Posts: 58
Joined: 2004-05-09 19:53:49

Post by clagio »

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 »

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 »

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 »

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 »

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 »

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 »

ok thank you, very much :)
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

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 »

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 »

i=0
while fullstr[i]<>" "
i=i+1
wend

newstr=left(fullstr,i)

....

etc, etc
Post Reply