Navigation: thinBasic Modules > Core > Application functions > APP_GetModuleFullPath |
|
Description
Returns the full path to the specified module.
Syntax
s = APP_GetModuleFullPath(ModuleName)
Returns
String
Parameters
Name |
Type |
Optional |
Meaning |
ModuleName |
String |
Yes |
Name of the module. Use short form like in USES keyword. |
Remarks
Function will search for the requested module following below path sequence:
1. | thinBasic path |
2. | thinBasic path \ Lib \ |
3. | thinBasic path \ Bin \ |
4. | thinBasic path \ Mod \ |
5. | thinBasic path \ Lib \ "thinBasic_" + ModuleName \ |
6. | thinBasic path \ Bin \ "thinBasic_" + ModuleName \ |
7. | thinBasic path \ Mod \ "thinBasic_" + ModuleName \ |
8. | Source script path |
9. | Source script path \ Lib \ |
10. | Source script path \ Bin \ |
11. | Source script path \ Mod \ |
12. | Source script path \ Lib \ "thinBasic_" + ModuleName \ |
13. | Source script path \ Bin \ "thinBasic_" + ModuleName \ |
14. | Source script path \ Mod \ "thinBasic_" + ModuleName \ |
If none of the above will be valid (ie module will not be found), an empty string will be returned.
Restrictions
See also
Examples
.
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |