Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 issues
Message
 
 
To
07/01/2000 09:14:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00314435
Message ID:
00314499
Views:
25
>Hi All,
>
>I've got 2 situations I'm a little confused with. First, how do I control the valid event within a textbox on a form and the user wants to exit the form instead of satisfying the valid.

Try to store the current value of the textbox by storing it in a custom property at WHEN event and then compare the value at the VALID event.

* WHEN Event

Thisform.prevvalue = This.Value

* VALID Event

IF Thisform.prevvalue = This.Value OR EMPTY(This.Value)
RETURN
ELSE
DO something
ENDIF


>The valid keeps firing false and preventing the form from closeing. Second, can I use multiple fields with a combobox set as a dropdown list ? I keep getting an field error when I include more then 1 field.

Your rowsourcetype should be ALIAS or FIELDS then at rowsource property it should be like this mytable.field1, field2, field3 etc.

>
>
>Thanks in advance,
>
>Don
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform