Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and word97 error
Message
From
02/05/1998 13:10:08
 
 
To
02/05/1998 12:25:19
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095638
Message ID:
00096516
Views:
23
>Hello Alexander Grigorjev,
>
>I thank you to try help me, I did what you say and now the VFP shows a error message saying "Function name is missing )."
>
>You can help me
>
>

Hello,

The syntax of the Add function:

Add(Range, Type, Text, PreserveFormatting)

!!!!!!!!!!!!!
Range Required Range. The range where you want to add the field. If the range isn't collapsed, the field replaces the range.
!!!!!!!!!!!!!
...

You need to use the Range object.

Move the cursor into position where you want to insert new Field.

The following example returns a Range object that refers to the first position in the active document.

oRange = oWrd.ActiveDocument.Range(0,0)

Next you can insert new Field in Document.

oWrd.ActiveDocument.Fields.Add( oRange, wdFieldDocVariable, "YourVariableName")

Good Luck.

Alexander Grigorjev
Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform