knowledge-database (beta)

Current group: comp.soft-sys.powerbuilder

How to dynamically change code table on a editmask control?

How to dynamically change code table on a editmask control?  
Nobuo Saito
 Re: How to dynamically change code table on a editmask control?  
Philip Salgannik
From:Nobuo Saito
Subject:How to dynamically change code table on a editmask control?
Date:5 Jan 2005 18:15:09 -0800
I'm using PowerBuildrer 7.0
I'm trying to make a date control using editmask control.
It has three spin buttons corresponding year, month and day
and you can spin month and day cyclicly, for example, if you click
the month spin button when it is December, you get January.
It dosen't have a datawindow. Those editmasks are not on a datawindow object.
It seems that I have to use code tables for cyclic spin controls.
Here's my problem. How can I store data to a code table dynamically,
i.e. by a program? The last day of a month changes depending on the month.
I don't want a user can spin a day to 31st when a month is Feburary.
Thanks in advance.
From:Philip Salgannik
Subject:Re: How to dynamically change code table on a editmask control?
Date:Wed, 5 Jan 2005 23:01:24 -0500
Why bother reinventing the wheel?

http://www.wideopenwest.com/~rsizer/powerbuilder/source/datetimepicker.htm

http://www.wideopenwest.com/~rsizer/powerbuilder/source/monthcal.htm

--
__
"Nobuo Saito" wrote in message
news:c1d437f.0501051815.3a1b7037@posting.google.com...
> I'm using PowerBuildrer 7.0
> I'm trying to make a date control using editmask control.
> It has three spin buttons corresponding year, month and day
> and you can spin month and day cyclicly, for example, if you click
> the month spin button when it is December, you get January.
> It dosen't have a datawindow. Those editmasks are not on a datawindow
> object.
> It seems that I have to use code tables for cyclic spin controls.
> Here's my problem. How can I store data to a code table dynamically,
> i.e. by a program? The last day of a month changes depending on the month.
> I don't want a user can spin a day to 31st when a month is Feburary.
> Thanks in advance.
   

Copyright © 2006 knowledge-database   -   All rights reserved