Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
I created a list box called 'site' and I want to take the last value selected in it.
I created a macro with a function which contains :
Function test()
Set myvariable = ??? (I want to have the last value selected in the list box)
End Function
And in my load script I called the function :
Let myvariable = test()
If somone can help me !
Thanks.
I believe the function you are looking for is the GetFieldSelections
from the help text:
returns a string containing the current selections in a given field. Valuesep is the delimiter between selected values and defaults to ', '. Maxvalues is the highest number of individual values that will be displayed before 'x of y' notation is used instead.
getfieldselections(Country)
getfieldselections (Country, ';' )
getfieldselections (Country, ',' , 10 )