Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP equivalent to VB :=
Message
From
30/01/2001 23:24:53
 
 
To
30/01/2001 20:22:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00470447
Message ID:
00470519
Views:
35
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform