Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetWebRoot: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Category:General_Functions]]
{{HelpFiles}}  
{{HelpFiles}}
 
==== getWebRoot  ====


====getWebRoot====
Returns the web root.


Returns the web root.
'''Syntax'''


'''Syntax'''
getWebRoot()


getWebRoot()
'''Arguments'''


'''Arguments'''
None


None
'''Return type'''


'''Return type'''
string


string
'''Examples'''


'''Examples'''
''string filename = "myfile.g";''  


''{''
''string location = getWebRoot() + "Public/GetImage.aspx?file=" + filename;''  


''string filename = "myfile.g";''
''print(location); ''


''string location = getWebRoot() + "Public/GetImage.aspx?file=" + filename;''
''//Result: http://[sitename].catglobe.com/Public/GetImage.aspx?file=myfile.g''  


''}''
'''Availability'''  


'''Availability'''
Version 4.8 __NOTOC__ <!-- imported from file: 415.htm-->


Version 4.8
[[Category:General_Functions]]
__NOTOC__
<!-- imported from file: 415.htm-->

Latest revision as of 03:43, 22 December 2011



getWebRoot

Returns the web root.

Syntax

getWebRoot()

Arguments

None

Return type

string

Examples

string filename = "myfile.g";

string location = getWebRoot() + "Public/GetImage.aspx?file=" + filename;

print(location);

//Result: http://[sitename].catglobe.com/Public/GetImage.aspx?file=myfile.g

Availability

Version 4.8