Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting strings from a text
Message
From
30/09/2002 16:10:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00706072
Message ID:
00706122
Views:
16
This message has been marked as the solution to the initial question of the thread.
>Hi Friends!
>
>Hi have a trouble and to be sincere, I don´t have any idea how to solve it. Somebody at the company, has a big bank of customers and contacts mail adresses. She had the great idea of write all the adresses in Word (Around 200 pages), with the format:
>
>Cotusa@prodigy.net.mx,viverdi@infosel.net.mx
>
>So, the only mark is a ",". What I need to do is separate all the adresses and write it on a table. Is it possible from Word or I need to export the data to another place?
>
>Thanks in advance!

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
Ç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
Next
Reply
Map
View

Click here to load this message in the networking platform