Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box default selected item
Message
 
 
To
08/08/2001 19:28:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00541586
Message ID:
00541633
Views:
26
I'm glad it works. I think you can move this code to the Init of the form and get rid of ThisForm.lFirstTime.

>Sergey,
>I've tried that. The following seems to work in the activate but I want to just use the Activate
>
>If ThisForm.lFirstTime
> For Each oControl In Thisform.Controls
> If Upper( AllTrim( oControl.Class ) ) == "COMBOBOX"
> oControl.Selected[1] = .T.
> EndIf
> EndFor
> ThisForm.lFirstTime = .F.
>EndIf
>
>It turns out the Value propert works after all. I must have set other properties which caused that to fail.
>
>
< SNIP >
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform