<<
There are no less than 47,600 hits for "delphi IIF"
>>

Yes, I probably wrote some of them myself.

But you can't create an R:Base IIF function in a DLL because the DLL wouldn't 
have access to R:Base's expression evaluator nor to its environment to evaluate 
the truthfulness of the first argument.  Only the R:Base engine can do that.  
You could write a simplified version in an R:Base stored procedure, passing the 
condition in as a string and evaluating it with macros substitution, but you'd 
be limited to using a single pre-determined type for the return values.

This is a case where there's really no substitute to adding the function to the 
core language.  
--
Larry


Reply via email to