Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Highlighting expression error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00419140
Message ID:
00419272
Views:
22
Sure, we all know that there is more than one way to skin a fox... er... cat :)

>Hi!
>
> There are more tricky and simple way for case INLIST(this.recordsourcetype,3,4). In Init method of grid you can extract alias from control source of columns, they're ALWAYS 'alias.field'-like.
>
>>For example something like
>>EVAL(IIF(this.recordsourcetype = 4, "'" + SUBSTR(this.recordsource, RAT(" ", this.recordsource) + 1) + "'", this.recordsource))
>>goes instead this.recordsource...
>>:)
>>(assuming that "...INTO CURSOR ZZZ" is at the end of SELECT statement and probably nobody uses RecordSourceTypes 2 and 3 anyway :)
>>
>>
>>>Hi, Nick!
>>>
>>> What if RecordSource is SELECT - SQL statement? :)))
>>>
>>>>Or, IIF(RECNO(this.RecordSource) = grno... so you are not hardcoding the alias.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform