Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting strings from a text
Message
From
01/10/2002 13:45:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/10/2002 11:44:23
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00706072
Message ID:
00706490
Views:
17
>>Off the top of my head :
>>oWord=createobject('word.application')
>>with oWord
>> .Documents.Open(lcMyDocument)
>> .ActiveDocument.Content.Select
>> .Selection.Copy
>> .quit()
>>endwith
>>lnAdresses = alines(arrAdresses, _cliptext,',')
>>Cetin
>
>In VFP 7, ALINES() can have 4 parameters (2 required, 2 optional),
>ie: ALINES(Array, String [, Trim [, Delimiter]]). Therefore, the above example need to move the third parameter to the fourth location and insert a logical into the third location.
>
>In VFP 6, ALINES() only has three parameters (there is no optional delimiter), ie: ALINES(Array, String [, Trim ]). Therefore, to make the example work, the _cliptext would have to be replaced with CHRTRAN(_cliptext, ",", CHR(13)) and the third parameter would be changed to a logical or dropped.
>
>Just my .02.
>
>TC

You're right Todd :) Sorry happens to me all the time when I try to quickly write a piece of code. But hope sender got the idea.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform