User Tools

Site Tools


scriptsgeneral

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
scriptsgeneral [2017/12/13 13:26]
admin [Global Variables]
scriptsgeneral [2017/12/13 13:29] (current)
admin [Global Variables]
Line 183: Line 183:
 now, the content of the global variable is available in the Script and we can work with it. now, the content of the global variable is available in the Script and we can work with it.
  
-  
-<​code>​ 
-Dim i As Integer ​   'Local Integer variable 
-Dim gbl_A As String 'Local variable For the content of a Global variable 
  
-gbl_A = GetGlobalVar("​gblA"​) 'Read Global variable 
-i = Val(gbl_A) ​  '​convert To Integer 
- 
-If i > 5 Then    'If > 5 Then reset Global variable To "​0"​ 
-   ​SetGlobalVar("​gblA","​0"​) 
-Else   '​If Not increment 
-   i = i + 1 
-   ​SetGlobalVar("​gblA",​Str(i)) 'And Write back As String 
-End 
-</​code>​ 
-  
 ==== Shell Execute As Function ==== ==== Shell Execute As Function ====
  
scriptsgeneral.txt ยท Last modified: 2017/12/13 13:29 by admin