Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is a ComboBox's RowSource cursor create?
Message
From
13/02/2008 17:32:35
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01292415
Message ID:
01292428
Views:
22
This is really old code with lots of junky classes flying around. I'll keep looking. Thanks!

>>Should it matter that it is in a container and part of a class?
>
>I do no think so
>
>
>loForm			= Createobject('myForm')
>loForm.Show(1)
>
>define class myForm as Form
>	BindControls = .f.
>	add object myContainer as myContainer
>
>	procedure Load()
>		local i
>		create cursor myData (PK I Autoinc, DataValue C(10))
>		for i = 1 to 100
>			insert into myData (DataValue) values (Sys(2015))
>		next i
>	endproc
>
>	function init() as Boolean
>		select myDataCursor
>		browse normal nowait
>		return .t.
>	endfunc
>enddefine
>
>define class myContainer as Container
>	add object myList as myCombobox
>enddefine
>
>define class myCombobox as ComboBox
>	RowSource			= 'select DataValue from myData order by 1 into cursor myDataCursor'
>	RowSourceType		= 3
>enddefine
>
Previous
Reply
Map
View

Click here to load this message in the networking platform