Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Boxes Behave strange
Message
From
28/06/2000 07:35:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
List Boxes Behave strange
Miscellaneous
Thread ID:
00385612
Message ID:
00385612
Views:
57
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
Map
View

Click here to load this message in the networking platform