Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VBA - VFP syntax conversion blues
Message
 
À
27/06/1999 13:10:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00234505
Message ID:
00234650
Vues:
32
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform