AutoHotkey Community

It is currently May 26th, 2012, 4:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: March 27th, 2009, 2:22 pm 
Offline

Joined: January 30th, 2009, 5:43 am
Posts: 12
list =
(
234586
213511
072441
124128
214199
)
how can i remove "072441" the new list should look like this:

234586
213511
124128
214199

i tried with

Code:
StringReplace, list, list,072441 , `r

but it makes a hole into the list


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 2:27 pm 
Code:
Loop, Parse, list, `n
{
   If InStr(A_LoopField, 072441)
      Continue
   Else
      NewContent .= A_LoopField "`n"
   }
MsgBox % NewContent


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 2:29 pm 
Code:
StringReplace, list, list,% 072441 "`n" , ,
:?:


Report this post
Top
  
Reply with quote  
PostPosted: March 27th, 2009, 2:39 pm 
Leonidas225 wrote:
i tried with

Code:
StringReplace, list, list,072441 , `r

but it makes a hole into the list

You were very close. This is what you wanted.
Code:
list =
(
234586
213511
072441
124128
214199
)

StringReplace, list, list,072441`n
msgbox, %list%


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, SKAN, tterB, Yahoo [Bot] and 12 guests


You can post new topics in this forum
You can 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:
Powered by phpBB® Forum Software © phpBB Group