Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox default value
Message
 
To
13/11/2001 12:16:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00580935
Message ID:
00581317
Views:
15
>>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>
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform