Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing out parts of text file
Message
From
04/02/2008 09:34:40
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01288936
Message ID:
01289029
Views:
14
Can there be a nested tag within < IMG

If so, will this work or will you extract only the portion up to the end of the last nested tag?

>Jos,
>
>Maybe something like this
>
>
>LPARAMETERS tcHTMLFileName
>
>lcHTML		= FILETOSTR(tcHTMLFileName)
>DO WHILE AT('<img', lcHTML) # 0
>	lcHTML		= STRTRAN(lcHTML, STREXTRACT(lcHTML, '<img', '>', 1, 1 + 4), '')
>ENDDO
>
>
>Completely untested and written "in-situ" so the parameters order might not even be right
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform