Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having Problem with RAMANI'S Grid Color Routine!!

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
Hey everyone...
First, I want to thank you Ramani for posting the FAQ on how to highlight the current selected row in a grid...

But, sometimes, I get an error saying:


Expression is invalid. Use a valid expression for DYNAMICFORECOLOR property


Then I have OK and Cancel... And then I have to click on OK
till everycolum is showing and then it works fine!!

It happens every once in a while!
PS: My grid is on a PageFrame that contains 2 pages!!!

What is causing this???
Please let me know if this helped you :)

Tekno
Wireless Toyz
Ypsilanti, Michigan
 
This error occurs when the expression you put in the DynamicBackColor property would generate an error. This can be caused by many things, and it all depends on the exact code you assign in the SETALL command.

If you post that code, we might be able to give you more specific advice.

Ian
 
Hi Tekno,
Have you used the latest codes. If not download and try. Please let me know if errors persist. The reason i am saying this is that at some point of time, I had updated thge code to do the same a little more efficiently and I dont remember what exact I did. Please check and let me know :)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
I will try it Ramani... Thank you Ian for the response! Please let me know if this helped you :)

Tekno
Wireless Toyz
Ypsilanti, Michigan
 
Hi
I had the same error and my problem was that I'd forgotten to initialise the form level var inRecNo to zero. Duh.
Andy

 
I think, the post is opened again by mistake. I am sure Tekno would have solved the issue. If any one is having a problem, I am ready to help with suggestion :)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top