Sign in to follow this  
Followers 0
Qualitybit

1 String with @CRs 2 Array - help

4 posts in this topic

Hi,

I grab an HTML-page (every line ends with @CR), put it into a string, put it into a file and reload it with file2array so I can parse it line by line.

I could not believe that this is the shortest way. Does anyone have a hint for me?

regards,

101011


[font="Courier New"][center]Me vs. 127.0.0.1 =>> 0:2But I never give up! >:-][/center][/font]

Share this post


Link to post
Share on other sites



$String = grab page

$StringArray = StringSplit($String, @CR)

For $i = 1 to $StringArray[0]

;;;;;do what you want

Next


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Maybe...

StringSplit($string, @CR)

Edit: herewasplato winz :whistle:

Edited by mikehunt114

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

big thx !

101011


[font="Courier New"][center]Me vs. 127.0.0.1 =>> 0:2But I never give up! >:-][/center][/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0