Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid shows 0 instead of 1
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01532265
Message ID:
01532270
Views:
50
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I can not figure out why I am seeing 0 in the Entry Type column while the value in the table is 1.
>
>Here is the code in the form's Init:
>
>	with .Grid1 as my_Grid of my_class.vcx
>		.recordsource='Language'
>		.colID.controlsource='Language.LanguageID'
>		.colEntryType.controlsource = 'Language.EntryType'
>		.column1.controlsource = 'Language.LookupVal'
>		.colLanguage00.controlsource = 'Language.Language00'
>		with .colEntryType
>			.removeobject('text1')
>			.newobject('cboEntryType','my_combobox','my_class.vcx')
>			.cboEntryType.rowsourcetype = 5
>			.cboEntryType.rowsource = 'thisform.aEntryTypes'
>			.cboEntryType.columncount = 1
>			.cboEntryType.boundcolumn = 2
>			.cboEntryType.boundto = .t.
>			.cboEntryType.Requery()
>			.cboEntryType.visible = .t.			
>		endwith
>	endwith
>
>
>Do you see why would it show 0 in the column? The array has 2 entries and they are values 1 and 2 in the second dimension.
>
>Thanks in advance.


Sparse?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform