Yoko

All sides of Injection
It is currently 2025-11-11 10:12:17

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [string] manipulation
PostPosted: 2006-03-12 12:49:30 
Offline

Joined: 2006-03-12 12:41:55
Posts: 9
with our .c when i write
.c prova 12345
our guild can see this
Image

Is possible to take the number ONLY from that string and use it like a variable?


Top
   
 Post subject:
PostPosted: 2006-03-13 09:24:49 
Offline
User avatar

Joined: 2005-01-13 07:20:54
Posts: 528
Mid (string,position,number of words) position from 0
LTrim - delete left spases
RTrim - delete right spases
Trim - delete left and right spases

use

Code:
if uo.injournal('Dago MegaDeatH') then 
..
        s=uo.JournalSerial(uo.InJournal('Dago MegaDeatH')-1)
                   fraza=uo.journal(uo.InJournal('Dago MegaDeatH')-1)
                   uo.print("lench of this fraza "+str(len(fraza)))
                   for i=0 to (len(fraza)-3)
                         l=mid(fraza,i,3)
                         if l == 'va ' then     #search the string 'va ' of(proVA 123)
                              sec1=i+3  #start position of '12345'
                         end if
                   next
                   sec2=number_lench #lench '123456'  - lench=6
        variable=mid(fraza,sec1,sec2)
..
end if


Top
   
 Post subject:
PostPosted: 2006-03-13 10:54:52 
Offline

Joined: 2006-03-12 12:41:55
Posts: 9
:shock:
it's possible?!?!
thanks a lot anyway you are crazy, beleave me!!!


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 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