Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox default value
Message
From
14/11/2001 01:11:35
Michel Fournier (Online)
Level Extreme Inc.
Petit-Rocher, New Brunswick, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00580935
Message ID:
00581321
Views:
14
>>>I suppose you could add a property to your listbox class called defaultValue. Then in the init() method of the listbox class you would put this.value = this.defaultValue.
>>
>>This is just a simple form done in a minute in order to test something. I thought we could assign a default value without writing code.
>Maybe:
>
>public frmLB
>frmLB=createobject('form')
>frmLB.Show
>frmlb.addobject('oLB','ListBox')
>foLB=frmLB.oLB
>folb.visible=.t.
>folb.additem('126.001.001.789')
>folb.additem('126.002.001.789')
>folb.additem('126.003.001.789')
>folb.value='126.001.001.789'
>
>But then again, maybe not<g>

As you may have seen by now, we found the reason. :)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform