Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GridHighlighter
Message
 
 
To
12/04/2001 23:11:55
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00495186
Message ID:
00495203
Views:
15
>Hi,
> I get error "Invalid Dynamicbackcolor" and etc in my grid using gridhighlighter to highlight row. I failed to find out the mistkaes I made.
>Could u pls tell me any error in the following codE?
>
>
>LPARAMETER tcItemNo, tcBCode
>
>WITH THIS.grdStocks
>	.RECORDSOURCE = ""
>	THISFORM.GRIDHIGHLIGHTER1.INIT()
>
>	SELECT SNo, Inv_No, Qty, Qty AS NewQty, 00000000 AS nAdjusted ;
>	FROM Stock_Status ;
>	WHERE INo = tcItemNo AND BCode = tcBCode ;
>	INTO CURSOR csrItemGrid
>	
>	SELECT 0
>	USE DBF("csrItemGrid") AGAIN SHARED IN 10 ALIAS csrtmpFile
>	CURSORSETPRO("Buffering", 5, "csrtmpFile")
>
>	WITH THIS
>		.GRIDHIGHLIGHTER1.INIT()
>
>	ENDWITH
>	
>	.RECORDSOURCE = "csrtmpFile"
>
>	WITH THIS
>		.GRIDHIGHLIGHTER1.INIT()
>	ENDWITH
>
>I did use the latest cersion of grid highlighter too. However, still the same error
>
>Thank you

John,

Why are you calling GridHighlighter Init method three times in a code? Does one call work for you? Also there is some inconsistency about using this and thisform in this code sample. I assume, "this" means "thisform" everytime. Don't need with endwith for single command also, though it should not matter.
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