>When I run this code I am getting a syntax error on the following portion:
>
> .Selection.InlineShapes.AddPicture FileName:="F:\Contacts\Graphics\ACERO.BMP"_
> ,LinkToFile:=False, SaveWithDocument:=True
>
A few things:
- The "_" is not the continued line character in VFP - it's ";"
- It's not True and False in VFP - it's
.T.
and .F.
- You can't use named paramters - FileName:="..." - in VFP, you must pass in all required variables in the order they appear in the function, e.g., in AddPicture() if
FileName
is expected first, LinkToFile
is expected 2nd and SaveWithDocument
is expected 4th, with another logical parameter expected 3rd, the call would be.Selection.InlineShapes.AddPicture("F:\Contacts\Graphics\ACERO.BMP", .F., .F., .T.)
This is assuming that the default value of the 3rd parameter is False. You'll have to check the expected parameters and their default values, as I am not sure of these myself.
HTH
Insanity: Doing the same thing over and over and expecting different results.