[database_util_cleanPath] checks the path of the string parameter, and replaces any double slash '//' with a single slash '/'.
Used in database_addDefaultSQLiteHost to clean paths returned by database_registry.
database_util_cleanPath('String Value')
Use the [database_util_cleanPath] method. The following examples replace double slashes with single slashes. In the first example, a single database path is cleaned. In the second example, an array of hosts is iterated over, comparing each each host's cleaned database path against a local value, and returning the result.
Code
Example 1:
cleanName = database_util_cleanPath(string(sys_databasesPath))
Example 2:
with host in #hosts
where database_util_cleanPath(string(#host->find('name'))) == #cleanName
do { return }
Result
Example 1: /Applications/Lasso9/SQLiteDBs/ Example 2: true
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments