Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7 wish list - enhanced ALINES
Message
From
15/02/2000 18:41:17
 
 
To
15/02/2000 18:19:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00331978
Message ID:
00332634
Views:
9
>>>>>Add an optional parameter that will allow you to determine the character or characters that break up each line.
>>>>
>>>>Think about using the Vbscript.RegExp object to build a Matches collection rather than ALINES().
>>>
>>>I am not familiar with Vbscript.RegExp. Can you elaborate? Thanx.
>>
>>Vbscript.RegExp is a regular expression parser that can create collections of matches of regular expressions. It's vastly more involved than a single message could summarize - go to the MS WSH site referenced in my signature block and follow the links for the WSH Tutorial - there are several detailed articles on theregular expression parser there.
>
>Ok, I'll check that out. Thanks for the info.

A realy simple example:
oRegExp = CREATEOBJ('Vbscript.RegExp')
oRegExp.Global = .T.
oRegExp.Pattern = "[^\n\r]*\r"
oMatches = oRegExp.Execute(FILETOSTR("temp.txt"))
FOR EACH match in oMatches
   ? match.value
ENDFOR
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform