Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit a file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01416197
Message ID:
01416286
Views:
56
>Hi Sergey,
>
>I tried the following:
>
>
>cTagName = STREXTRACT("C:\test2\PayRegExtract.xml","<table1>","</table1>",1,1)
>MESSAGEBOX(cTagName,0,'')
>
>
>and it yield empty value.
>
>thanks
>Nick

In STREXTRACT you need to deal with the content of the file, not the file. E.g. STREXTRACT(filetostr(myXMLFile), ...)
cTagName = STREXTRACT(FILETOSTR("C:\test2\PayRegExtract.xml"),"<table1>","</table1>",1,1)
MESSAGEBOX(cTagName,0,'')
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform