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:
01532283
Views:
38
>>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?

It didn't work last night in all my tries, so I just gave in and set the properties of the columns in design time and it worked. And then in last chat with my colleague we decided to not show this field at all, so I got rid of it.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform