Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Little problem with AddAll/AddBlank
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Little problem with AddAll/AddBlank
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01142413
Message ID:
01142413
Vues:
54
Hi everybody,

I have a generic combobox class cboVisCodes, that has array as its rowsource and two properties lAddBlank/lAddAll. lAddAll executes this code:
IF .lAddAll AND ASCAN(.aRowSource, "<<All>>",1,-1,1) = 0
		lnCols = ALEN(.aRowSource,2)
		DIMENSION .aRowSource[ALEN(.aRowSource,1)+1, m.lnCols] && add one more row
		AINS(.aRowSource,1)
		FOR lnI = 1 TO m.lnCols
			STORE IIF(m.lnI = 1, "<<All>>", "%") TO .aRowSource [1, m.lnI]
		NEXT
	ENDIF
The problem is, that one of the columns is numeric type value.

So, should I try to change the code? If yes, how would I know what type the column should be? Should I use 0 as default?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform