PDA

View Full Version : NewFormEx


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

kornalius
10-01-2007, 01:26 AM
That is a strange one. Which version of PPL are you using? It should have the following info by default, this is from a new form I just created.

FORM100$ = NewFormEx("My Form100", "PPLForm", 0, WS_BORDER, 0, 26, 240, 269, NULL);

It will have WS_BORDER, WS_VISIBLE and WS_FORMCENTER by default.

JBH
10-01-2007, 05:35 AM
I am using the verison posted 9/25/07 or 9/28/07, I am not sure of the posting date, it is the latest I could find.

kornalius
10-01-2007, 01:33 PM
Please uninstall PPL and re-install over again. I am pretty sure some files are missing. In The C:\Program Files\PPL\ you should have a file called CLASSES.INI, this file is the important one in this case here.

kornalius
10-01-2007, 01:34 PM
After uninstalling PPL, make sure C:\Program Files\PPL is empty before re-installing again.

One more question, are you using the PIDE or the visual form builder in PPL? There are two form editors.

kornalius
10-09-2007, 12:16 PM
Hi,

We have just discovered the same problem you were having, we have fixed it for version 1.40.