PDA

View Full Version : General help with with a form in PPL 2


jdixon
08-06-2009, 08:15 PM
Hello
I am trying to make a general form with a button and display window that to shows a variable. I know how to do this in ppl1 but can not figure it out in ppl2. All the tutorials show how to change the caption of a window bar. Please help me understand and use PPl 2.

Thank you
Juan

kornalius
08-06-2009, 10:46 PM
Select the Edit control, go to the Bind property. Add a new bind and link it to a PValue object (that you will need to create) or you can link to a PPL variable by choosing PBindVar instead of PBindObject.

This will update the binded objects depending on the update directions you chose.

Another way would be to create a OnShow event on the form and do the following code:

EditControl.Text = MyVar$;

If you want to do this visually (much simpler than manual coding). Just drag the EditControl object on the OnShow method object. Then select Text from the list. In the Expr property of that new visual code line, type MyVar$.