Paul,
You are welcome.
MartinJ
>Thank you so much! It works!!! I have been banging my head on this for four days! (I had to fix one line in your reply "l_sub" --> "l_subs".)
>
>So it looks like I had the following things wrong to access the array:
>
>1. I was confusing the number of subscripts with the number of elements, so I was setting the lines_of_code.lsubs wrongly with the number of elements:
> Lines_of_code.l_subs = (int)_ALen(parm->p[0].loc.l_NTI, AL_ELEMENTS) //wrong
> instead of:
> Lines_of_code.lsubs = 1; // one dimentsional array (REQUIRED!)
> liCount = (int)_ALen(parm->p[0].loc.l_NTI, AL_ELEMENTS); //No. of elements.
>
>2. I hadn't set the val.ev_type = 'C'
> I thought this would be there automatically, and it does seem to work OK without it.
>
>Once again, Thank you very much.