Hi Tom Include this code in your program Select * from ...... If SelectionInfo(SEL_INFO_NROWS) > 0 then ' do your calculation here End if PS. Remember to include mapbasic.def in your program Peter Laulund National Survey and Cadaster, Denmark "Tom Manson" <[EMAIL PROTECTED]> - 12-05-99 09:34:34 Til: [EMAIL PROTECTED] cc: (bcc: Peter Laulund/MI/KMS) Vedr�rende: MI - table selection in MB
Dear list, I'm having difficulty trying to 'universalise' a MB program. Part of the routine performs a query, and then does a calculation on the selection. However, on some tables the query doesn't return any data, so there is no selection on which to perform this calculation. Is there any way to get around this, so the program won't 'trip up' and crash when nothing is selected? Many thanks in advance, Tom ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
