Yoko
http://forum.yoko.com.ua/

split journal
http://forum.yoko.com.ua/viewtopic.php?f=3&t=1861
Page 1 of 1

Author:  clagio [ 2004-11-06 08:24:19 ]
Post subject:  split journal

it's possible to split journal message?
example:

clagio: var1 var2 => journal message

var x= var1
var y= var2

Author:  clagio [ 2004-11-08 14:09:29 ]
Post subject: 

noone know? :)

Author:  AGRS [ 2004-11-08 14:15:42 ]
Post subject: 

I can't understand correct what you want to do.

Author:  clagio [ 2004-11-08 14:29:03 ]
Post subject: 

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

:)

Author:  Sfagnum [ 2004-11-08 14:32:04 ]
Post subject: 

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

Author:  AGRS [ 2004-11-08 14:44:19 ]
Post subject: 

Var TextAll="hello world"
Var TextLeft=Left(TextAll, 5) ; Hello
Var TextRight=Right(TextAll, 5) ; World

Author:  clagio [ 2004-11-08 14:45:46 ]
Post subject: 

how? there are function to split or analyze text string? i didn't see anything in the documentation..

Author:  Sfagnum [ 2004-11-08 14:48:00 ]
Post subject: 

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

Author:  clagio [ 2004-11-08 14:51:28 ]
Post subject: 

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?

Author:  clagio [ 2004-11-08 14:51:58 ]
Post subject: 

ok thank you, very much :)

Author:  AGRS [ 2004-11-08 14:57:09 ]
Post subject: 

Left(string,symbol_count)
Right(string,symbol_count)
Mid(string,position,symbol_count)

Author:  Sfagnum [ 2004-11-08 15:00:38 ]
Post subject: 

AGRS wrote:
Left(string,symbol_count)
Right(string,symbol_count)
Mid(string,position,symbol_count)
во блин, пока я расписывал... да проверял написание, ты ответил как всегда лаконично :)

Author:  Yoko [ 2004-11-08 15:02:26 ]
Post subject: 

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

newstr=left(fullstr,i)

....

etc, etc

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/