Yoko

All sides of Injection
It is currently 2026-03-16 19:17:15

All times are UTC+02:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
 Post subject: split journal
PostPosted: 2004-11-06 08:24:19 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
it's possible to split journal message?
example:

clagio: var1 var2 => journal message

var x= var1
var y= var2


Top
   
 Post subject:
PostPosted: 2004-11-08 14:09:29 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
noone know? :)


Top
   
 Post subject:
PostPosted: 2004-11-08 14:15:42 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
I can't understand correct what you want to do.


Top
   
 Post subject:
PostPosted: 2004-11-08 14:29:03 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
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

:)


Top
   
 Post subject:
PostPosted: 2004-11-08 14:32:04 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
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


Top
   
 Post subject:
PostPosted: 2004-11-08 14:44:19 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Var TextAll="hello world"
Var TextLeft=Left(TextAll, 5) ; Hello
Var TextRight=Right(TextAll, 5) ; World


Top
   
 Post subject:
PostPosted: 2004-11-08 14:45:46 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
how? there are function to split or analyze text string? i didn't see anything in the documentation..


Top
   
 Post subject:
PostPosted: 2004-11-08 14:48:00 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
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


Top
   
 Post subject:
PostPosted: 2004-11-08 14:51:28 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
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?


Top
   
 Post subject:
PostPosted: 2004-11-08 14:51:58 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
ok thank you, very much :)


Top
   
 Post subject:
PostPosted: 2004-11-08 14:57:09 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Left(string,symbol_count)
Right(string,symbol_count)
Mid(string,position,symbol_count)


Top
   
 Post subject:
PostPosted: 2004-11-08 15:00:38 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
AGRS wrote:
Left(string,symbol_count)
Right(string,symbol_count)
Mid(string,position,symbol_count)
во блин, пока я расписывал... да проверял написание, ты ответил как всегда лаконично :)


Top
   
 Post subject:
PostPosted: 2004-11-08 15:02:26 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
i=0
while fullstr[i]<>" "
i=i+1
wend

newstr=left(fullstr,i)

....

etc, etc


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited