Posts: 4
Threads: 1
Joined: Oct 2013
Reputation:
0
Hi
I created an ArrayList to store dynamic values and saved it in Environment variable.
While retrieving the ArrayList, I am facing Object mismatch exception.
Can any one help me?
regards
Gautam
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
Can you please post the code you have been trying?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
Does this work,
Code:
msgbox Isarray(arryDtls)
msgbox arryDtls(0)
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 4
Threads: 1
Joined: Oct 2013
Reputation:
0
Hi basanth
It's not working as expected;
msgbox Isarray(arryDtls)------>False
regards
Gautam
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
[quote='Gautam26' pid='25339' dateline='1383730981']
[quote='basanth27' pid='25338' dateline='1383701270']
Does this work,
So, it means that it never came as an array. Can you use the IsArray to verify that it first stored as an array?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 4
Threads: 1
Joined: Oct 2013
Reputation:
0
Hi Basanth
could you precise the needful to be done ?
regards
Gautam
Posts: 33
Threads: 2
Joined: Oct 2008
Reputation:
0
Gautam26:
I believe only a string can be saved as an Environment Variable. If you do not want to use a global variable, you will need to convert your arrayList into a string. Then later call the string variable and use split to reuse the array.
hth,
Parke