Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With fox loop to document in Word
Message
From
06/02/2004 06:43:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/02/2004 15:45:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00874575
Message ID:
00874762
Views:
16
>Finally I found just a few minutes after I send the first message. Here is the code
>
>if type('oWord') == 'O'
> for i=1 to oword.Documents.Count
> ? oword.Documents(i).Name
> ?? oword.Documents(i).saved
> endfor
>ENDIF
>
>Thanks

I think your original code would work too with a slight change :
if type('m.oWord') == 'O' and !isnull(m.oWord)
  for each oDoc in m.oWord.Documents
       ? m.oDoc.Name, m.oDoc.Saved
       oDoc = .null.
  endfor
endif
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