| || |
Slider bar problem
I am having a windows based application in which no. of sliders(track bar) are there.
if I record it..it generating the code like this:
I want to make a function and make it general as no. of sliders are there so that one generic function will work for all only need to send the parameter like:
Public Function Slider(obj1,obj2,strValue)
But as strValue comes as a string so, I am not able to send the coordinates as a parameter.
Is there any other way around to solve this issue?
Please reply for the same if any one have idea regarding the same.
Re: Slider bar problem
To convert "10,12" to numbers...
a = split( "10,12", ",")
pos1 = Cint(a(0))
pos2 = Cint(a(1))
which would then be used as (in your function)...
Dialog(obj1).winObject(obj2).Drag pos1, pos2