Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBA - VFP syntax conversion blues
Message
 
To
27/06/1999 13:10:25
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00234505
Message ID:
00234650
Views:
31
Nancy, Erik,

Thanks. The catch was in the distinction between inlineShapes and Shapes, that take different parameters for similar methods.

Takes some time to get used to OO à la MS. :)

Thanks.

Marc



>And Range is the 4th parameter.
>
>AddPicture(FileName, LinkToFile, SaveWithDocument, Range)
>
>>Hi, Marc-
>>
>>This inserted a picture okay. In my VBA editor, it showed the filename as string as the first parameter instead of last.
>>
>>
o.ActiveDocument.InlineShapes.AddPicture("c:\bob's photos\goofs.jpg")
>>
>>HTH
>>
>>>ActiveDocument.InlineShapes.AddPicture Range:=Selection.Range, _
>>> FileName:="c:\devl\igi\project\app16.bmp"

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform