• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

How to replace an arraylist slot with with a new value

I have an arraylist slot of size 6 in my 3rd slot I have marked "N/A" I want to be able to replace this N/A with a new value how can I do this?

arraylist.replace?


Arraylist-Replace.png
0
cmdolcet
Asked:
cmdolcet
1 Solution
 
Imran Javed ZiaCommented:
Hi,
Go to immediate window and run the following

arrayName(2) = "New Value"

thanks
0
 
cmdolcetAuthor Commented:
ok hers a stupid question how can I compare so that I can go into the loop

If arrayname = ("N/A") then
arrayName(2) = "New Value"
end if

Is this right? it give me errors
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now