Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).
Is a variable or variables created in a function accessible outside the function?
Robo-FTP 3.7.x and earlier
All variables used in Robo-FTP scripting can be considered "global". So any variable assigned anywhere is globally available.
Robo-FTP 3.8 and later
Arguments to a function are local to that function. The only exception to this behavior is when a function input argument has the exact same name as an existing variable. In this case, the argument will continue to behave as a global variable and if its value is changed inside the function that change will persist after the function returns.
See the Help file for more details: http://robo-ftp.com/help/robo-ftp/3.11/function.htm.
Article last updated: 2021-03-29
Tags: Robo-FTP