Normally have no trouble with conditional formatting in grid but having no luck when the test is based on whether a memo field is empty. Help appreciated.
Rather than EMPTY() you might try... LEN(ALLTRIM(table.memofield)) I do not know if it will help but it has solved other memo related issues for me in the past.
Here is another one I've used in queries to place default values in a memo before...
Thanks for the replies to the grid problem. Knowing the catchs with the empty() command I had checked the validity of the command with the memo field and it returns the expected value. Unfortunately, the offered fixes don't seem to solve the problem. No disaster but it would have been nice to have color marked the records with text in the memo field. If anyone else has any thoughts would be appreciated.
Many thanks: problem was a mismatch of quotes and commas caused by the use of empty() and not the usual numeric test. For anyone with the same problem the working code in the Init of the grid is ;
this.column7.dynamicforecolor="iif(empty(dbf.memofield),rgb(128,128,128), rgb(255,0,0))"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.