Posts: 4
Threads: 1
Joined: Oct 2013
Reputation:
0
10-31-2013, 05:30 PM
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
11-01-2013, 07:15 AM
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
11-06-2013, 06:57 AM
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
11-06-2013, 03:13 PM
Hi basanth
It's not working as expected;
msgbox Isarray(arryDtls)------>False
regards
Gautam
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
11-07-2013, 09:50 AM
[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
11-07-2013, 01:41 PM
Hi Basanth
could you precise the needful to be done ?
regards
Gautam
Posts: 33
Threads: 2
Joined: Oct 2008
Reputation:
0
11-07-2013, 07:30 PM
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