Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo
Message
From
04/04/2001 08:16:28
 
 
To
03/04/2001 14:18:04
Ben Dekker
Dekker Soft & Hardware
Axel, Netherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Combo
Miscellaneous
Thread ID:
00491456
Message ID:
00491771
Views:
10
Hi Ben.

>> I have use the next properties
controlsource : user.name
rowsource : user.name
Rowsourcetype : 6-field <<

You are going to have problems if your ControlSource and RowSource come from the same table. If you are using the combo to navigate through the table, leave the ControlSource blank.


>> I have a commandbutton which add a record to the table
all the textboxes works fine
but when i made an input in the combo nothings happens in the table <<

If you are adding a new value to the combo box, you have to write a little code to programmatically add the new record to the underlying RowSourcew. Code like this in the combo's valid will do it for you:
IF NOT EMPTY( This.DisplayValue ) AND This.ListIndex = 0
   *** The user typed in a new name
   *** Take Action here to add the new entry to the table
ENDIF
Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform