>>Hi everybody,
>>
>>That code works perfectly in IDE, but bombs out with Error 11 in the executable.
>>
>>
>>local array laParms[1]
>> local lnI as integer, lnTop, lnHeight, lnTotalSpace
>> =alines(laParms,alltrim(cProcessNames.mParameters),1,',')
&& Function argument type, value or count is invalid
>>
>>
>>
>>Do you know what could be wrong in this code?
>>
>>Thanks in advance.
>
>I would check all variables involved: do they exist at all, what is their type, and what is their value, right before the statement that bombs. You might do this with one or more WAIT WINDOW or MessageBox() statements.
In ALINES I don't have any parameters as you see. I'm using cursor's field that does exist and has right data. Right now I'm reading thread BUG in ALINES that may be related to my problem. The HELP on ALINES is a little bit confusing. It looks like the 3rd parameter nFlags (1 in my case) is not required. I tried without this parameter in IDE and it works fine. I'm waiting for my colleague to cut an exe to test it there.
If it's not broken, fix it until it is.
My Blog