cancel
Showing results for 
Search instead for 
Did you mean: 

How to parameterize image for click action

SOLVED
Occasional Contributor

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: How to parameterize image for click action

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()

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
1 REPLY 1
Highlighted
Community Hero

Re: How to parameterize image for click action

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()

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Top Kudoed Authors