Ariane Soft PPL2 Pocket Programming DataMite

Go Back   ArianeSoft Forums > PPL version 2 > General

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-06-2009, 07:15 PM
jdixon jdixon is offline
Junior Member
 
Join Date: May 2008
Location: Amherst MA USA
Posts: 21
Question General help with with a form in PPL 2

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

Last edited by jdixon; 08-06-2009 at 07:18 PM.
Reply With Quote
  #2  
Old 08-06-2009, 09:46 PM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default

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$.
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd