Forum Discussion

MOHIN_PASHA's avatar
MOHIN_PASHA
New Contributor
2 years ago
Solved

How to convert the Strings to Objects so that the actions can be taken on the objects

Hi All,   I am trying to pass the strings as part of the objects but it is object not found error. For eg:  I have a combo  box which as 17 items in it. I have written a while loop to loop throug...
  • rraghvani's avatar
    2 years ago

    Try using the eval() method. For example,

    var obj = eval("Regions.Pallet" + IntToStr(pallete_number + 1));
    obj.Check(imageCaptureAreaForPallet);