General information
Category:
Forms & Form designer
Title:
List Boxes Behave strange
Hi!
I am having a slightly hard to explain problem so please bare with me.
I have a bunch of combo boxes on a form.
In the program you can configure if they are to be
0-dropdown combo
or
1-drop down list
So the "style" property is set once when the form is inited.
The problem is when I use the seek dialog (a modul form)
and seek a new record. when the seek dialog is closed and focus is back on the main form the combo boxes do not show any values.
This only happens when they are set to "1-drop down list".
At this point the boxes are visible but not enabled.
When I press the edit button the boxes become enabled. Then the value suddenly shows up.
I have the following code in the combo boxes:
Destroy
IF USED("cMoc004")
USE IN cMoc004
ENDIF
This is because there is a rowsource of type cursor in them.
Lost focus
REPLACE STYLES.moc004 WITH RTRIM(This.DisplayValue)
refresh
This.DisplayValue = RTRIM(STYLES.moc004)
The controlsource=(none)
Anyone got any ideas.
Does my problem make sense???
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only