Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Little problem with AddAll/AddBlank
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Little problem with AddAll/AddBlank
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142413
Message ID:
01142413
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform