Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic grouping
Message
From
06/10/2006 13:56:49
 
 
To
06/10/2006 10:52:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01159860
Message ID:
01160160
Views:
26
OK, thanks.

>>Hi Dragan
>>>
>>>When the third type is introduced, get back to Borislav's message :).
>>
>>I'll bear it in mind, but it is essentially the same solution, just my code is in the report and Borislav's suggestion would use essentially the same type of code when building the cursor.
>
>The idea is roughly the same, but while iif() returns only two possible values, with a cursor you can have an unlimited number. Speaking from experience, in any situation where you have a check for a particular value of a string, it usually starts with "this value or the other, so it's an iif()", then becomes a case statement with a number of values, and ends up as a foreign key into a lookup table :).
>
>In your case, it can't go over 254 values, as the number of fields in a table is limited, so you may be lucky. I've just learned to spot the places which can grow more complicated.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform