Reply To: Newparameter

#2457
Szabadi Gergely
Participant

Thanks, perfect. I am trying to refer to this string description from a label. I am trying with ASSOCLP_PARVALUE_WITH_DESCRIPTION but with no sucess.

!MASTER
dim intparam[]
    intparam[1]=1
    intparam[2]=2
    intparam[3]=3
    intparam[3]=4

dim strparam[]
    strparam[1]='opt1'
    strparam[2]='opt2'
    strparam[3]='opt3'
    strparam[3]='opt4'

!PARAMETERS
values{2} "a" intparam[], strparam[]

!2D

text2 0, 0, a

! LABEL 2D Script to refer and write "a"

info1=""
n=REQUEST("ASSOCLP_PARVALUE_WITH_DESCRIPTION", "a", DUMMY_name_index, DUMMY_type, DUMMY_flags, DUMMY_dim1, DUMMY_dim2, info1)

text 0, 0, info1 

I tried with strparam[a] as I put dim strparam[] in the label Master script also.

G. Szabadi