How to fetch dic values

Hi
I have added dic values like
mapvalue=(0,“Banglore”)(1,“Delhi”)(2,“Kolkota”)…and soon on

how do I fetch these values? based on 0? 1? and etc

method 1:
assign i=0
while(i< mappingValue.size)
{
mappingvalue(i)
}

crct this syntax if this logic works

2 Likes

Hi @KarthikBallary,
Yes you can access like that,And if you want access the inside list values then
mappingvalue(0)(1).
Cheers.
Vashisht.

you were almost right
but we need to increment it
like
assign i=0
while(i< mappingValue.size)
{
mappingvalue(i);
i=i+1;
}

Cheers @KarthikBallary

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.