Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid shows 0 instead of 1
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01532265
Message ID:
01532283
Vues:
37
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform