Friday, 13 April 2018

mapinfo - Avoiding divide by zero in MapBasic?


In select statement how to avoid divide by zero in MapBasic:


select (col1/col2) "result"


If col2 is 0 it returns null.


How to use ISNULL or something in mapbasic?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...