Hi, I have a RAP extension function which returns a field from table. Field's value is returned as variant. Unfortunately integer field value 0 is returned as null causing error. Is there any way do if VarIsNull(v) then ... in RAP
The VarIsNull routine is not natively available in RAP. The easiest option would be to use this in your existing pass-thru function. Otherwise you could create a new pass-thru function providing VarIsNull functionality.
Note that the TppField object contains an IsNull routine for instances when you simply need to check if a field is null in RAP.
Comments
The VarIsNull routine is not natively available in RAP. The easiest
option would be to use this in your existing pass-thru function.
Otherwise you could create a new pass-thru function providing VarIsNull
functionality.
Note that the TppField object contains an IsNull routine for instances
when you simply need to check if a field is null in RAP.
http://www.digital-metaphors.com/rbWiki/RAP/Fundamentals/Check_for_IsNull
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com