setAllowsURIAccess: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=setAllowsURIAccess |version=1.10.0 |trusted=true |description= Setsif a Lib:Token allows URI access or not. |usage= <source lang="mtmacro" line> getA...")
 
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 3: Line 3:
|version=1.10.0
|version=1.10.0
|trusted=true
|trusted=true
|description= Setsif a Lib:Token allows URI access or not.
|description= Sets if a Lib:Token allows URI access or not.




Line 9: Line 9:
|usage=
|usage=


<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getAllowsURIAccess(value)
setAllowsURIAccess(value)
getAllowsURIAccess(value, libToken)
setAllowsURIAccess(value, libToken)
</source>
</syntaxhighlight>
'''Parameters'''
'''Parameters'''
{{param|value|1 for on, 0 for off.}}
{{param|value|1 for on, 0 for off.}}
Line 21: Line 21:


|also=
|also=
{{func|getAllowsURIAccess}} [[Library Tokens]]
{{func|getAllowsURIAccess}} <br>
[[Library Tokens]]


}}
}}
[[Category:Miscellaneous Function]]
[[Category:Miscellaneous Function]]

Latest revision as of 21:09, 14 March 2023

setAllowsURIAccess() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.10.0
Sets if a Lib:Token allows URI access or not.

Usage

setAllowsURIAccess(value)
setAllowsURIAccess(value, libToken)

Parameters

  • value - 1 for on, 0 for off.
  • libToken - The name of the Lib:Token to check.


If the libToken is not specified it defaults to the current token. Calling this with a non Lib:Token specified will do nothing.


See Also