JBH
09-30-2007, 08:25 PM
Please forgive my ignorance, but this is my first program using PPL. I am used to eVB and VB6 form building (I am more at home with C, C++ and assembler).
I created a form with the form builder. The generated code produced errors on the NewFormEx. The 'Styles' parameter was spaces. I looked at the example and checked WS_Border and WS_Caption, then the Styles parameter was coded as "WS_BORDER|WS_CAPTION|". Notice the trailing '|'. Removing the bar fixed the problem.
When using the form builder, how do you know which parameters are required? I did not notice the two missing parameters when I created the form. I can not see the relationship between the check boxes and the generated code.
The generated statement is:
frmMain$ = NewFormEx("Setup", "PPLForm", WS_EX_TOPMOST|WS_EX_WINDOWEDGE, WS_BORDER|WS_CAPTION|, 0, 26, 240, 304, NULL);
The error message is:
rror: (c:\nva\projects\ppl\poolta\frmmain.ppl) [Syntax error at '0' (56,99)]
error: (c:\nva\projects\ppl\poolta\frmmain.ppl) [Invalid number of input parameters at 'NEWFORMEX' (56,14)]
How can I find out all the requirements for the form builder and all the required options for the various objects available?
Thanks for your patience with an old programmer new to PPL
Jesse
I created a form with the form builder. The generated code produced errors on the NewFormEx. The 'Styles' parameter was spaces. I looked at the example and checked WS_Border and WS_Caption, then the Styles parameter was coded as "WS_BORDER|WS_CAPTION|". Notice the trailing '|'. Removing the bar fixed the problem.
When using the form builder, how do you know which parameters are required? I did not notice the two missing parameters when I created the form. I can not see the relationship between the check boxes and the generated code.
The generated statement is:
frmMain$ = NewFormEx("Setup", "PPLForm", WS_EX_TOPMOST|WS_EX_WINDOWEDGE, WS_BORDER|WS_CAPTION|, 0, 26, 240, 304, NULL);
The error message is:
rror: (c:\nva\projects\ppl\poolta\frmmain.ppl) [Syntax error at '0' (56,99)]
error: (c:\nva\projects\ppl\poolta\frmmain.ppl) [Invalid number of input parameters at 'NEWFORMEX' (56,14)]
How can I find out all the requirements for the form builder and all the required options for the various objects available?
Thanks for your patience with an old programmer new to PPL
Jesse