FUNCTION Quote ( Name AS String ) AS String |
The quoting mechanism depends on the database server driver, so this method is needed if you need to write database-independant code.
Example
' Returns the number of records in a query ' sTable is the name of the table. It can include reserved characters, so we need ' to quote it! rResult = Handle.Exec("SELECT COUNT(*) AS nRecord FROM " & DB.Quote(sTable)) PRINT rResult!nRecord