Joe Yoder wrote:
> I like the approach used by QuickBooks where pressing a mathematical
operator in a numeric field brings up a mini worksheet where one can do
math on the value in the field. I'm working a similar implementation
for time entry.
>
> A text box overlays a field used for time entry when a plus or minus
operator is pressed in that field. The text box expands to display a
separate line for each value added or subtracted from the original value
and serves as a mini worksheet. When the entry is complete and the user
presses the "Enter" key, The text box is eliminated and the result of
the math on the worksheet is entered in the original text field.
>
> I need to force all entry into the worksheet until it is complete so
that program can finish the calculation and close the worksheet. I
think setting the valid as always false until an "Enter" is pressed will
give the desired result.
>
> Can someone enlighten me about how to set the Valid function on a
programmatically created text box? Suggest a better approach?
>
Hi Joe,
If you're "stickbuilding it" by creating it in a PRG, just define the
Valid event of your class.
DEFINE CLASS cboSample as Combobox
FUNCTION Valid
* This code runs just like it would if you set the code inside a VCX
object
ENDFUNC
ENDDEF
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.