Forum Discussion

Jayanthsunkari's avatar
Jayanthsunkari
Occasional Contributor
6 years ago

How to parameterize image for click action

Hello ,

 

I have bunch of image for a mobile applciation , and i need to perfrom click action on every image. I want to pass a fresh image with image name on click method and the method should be loop till the image found with the image name on Imageprository . can some one help me on fixing this issues, i am using VB script 

This is code i am using :

ImageRepository.BING_Set.Password.Touch

i want to pass differnet images in the place of password image with the image name,could someone help me on fixing this ?

  • Hi,

     

    ImageRepository.BING_Set.Password.Touch

     

    Do you mean something like this:

    Dim strImageName : strImageName = "Password"

    Set obj = Eval("ImageRepository.BING_Set." & strImageName)

    Call obj.Touch()

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    ImageRepository.BING_Set.Password.Touch

     

    Do you mean something like this:

    Dim strImageName : strImageName = "Password"

    Set obj = Eval("ImageRepository.BING_Set." & strImageName)

    Call obj.Touch()