Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with the combobox!!!
Message
De
07/12/2005 21:48:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01075972
Message ID:
01075985
Vues:
27
Might you have the variable "NULL" set to an empty string somewhere?

good luck


>Hi everybody,
>
>I have the following code in the lAddBlank_Assign method (this is a custom property of the combobox):
>
>
>LPARAMETERS vNewVal
>LOCAL lnI, lnCols
>*To do: Modify this routine for the Assign method
>WITH THIS
>	.lAddBlank = m.vNewVal
>	IF .lAddBlank AND ASCAN(.aRowSource,SPACE(1),1,-1,1) = 0
>		lnCols = ALEN(.aRowSource,2)
>		DIMENSION .aRowSource[ALEN(.aRowSource,1)+1, m.lnCols] && add one more row
>		AINS(.aRowSource,1) && inserts a row
>		FOR lnI =1 TO m.lnCols
>			*-- CHANGE - NN - December 06, 2005 - 16:20:47 - added NULL
>			STORE IIF(m.lnI=2, NULL,SPACE(1)) TO .aRowSource [1, m.lnI]
>		NEXT
>	ENDIF
>ENDWITH
>
>The code is executed. However, the value for that blank row is empty and not null. Does it mean, that the comobobox with the array as rowsource can not have a null value inserted? Should I try to replace myself the empty value with NULL? Do you have ideas what could be wrong?
>
>The original value is NULL in the table.
>
>Thanks a lot in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform