>>My question involves the bolded line for TypeText. I've probably got this wrong, but reading the VB help I got the impression that := was used to pass a parameter to a function by name rather than by positon. The same code in VFP generated a syntax error.
>>
>>I couldn't find an equivalent in the VFP 6.0 help. I'm hoping someone here can enlighten me as to what this is and what a VFP equivalent code would be.
>
>VFP doesn't support named parameters. You have to find what order the parameterlist takes, and pass the parameters in order. Fortunately the TypeText function takes only a single parameter, the Text to output.
Thanks for the quick response. So my code should be:
WITH toWord.Selection
IF tcSection <> ""
.ParagraphFormat.Alignment = wdAlignParagraphCenter
.Font.Bold = wdToggle
.Font.Size = 18
.TypeText(ConvertSepType(tcSection))
.TypeParagraph
ENDIF
ENDWITH
Can I impose on you to point me to where I could find documentation on the parameters the various functions need? There are other pieces of the program which use the same syntax (the InsertBreak in my original sample snippet, for example).
Once again...Thanks a bunch............Rich