Click here to Skip to main content
14,668,709 members
Rate this:
Please Sign up or sign in to vote.
See more:

Is there a way to get all the variables values in a scope into array, without hard coding each value the array. its does not have to be a array ? my goal is to dump all variables values in text file.



Public Function TestFunction()
    Dim varone,vartwo
    varone  = "1"
    vartwo  = "2"
End Function

Public Function dump()
    for each (var item in TestFunction())
        console.write( + ":" +item.var)
End Function

if i call the dump function the dump()
Console Output should be :
varone:1<br />

This code is just a exapmle and what im thinking and is not working code.
Updated 5-Aug-15 23:19pm
Maciej Los 6-Aug-15 3:28am
Please, be more specific and provide more details...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100