>Metin, > >If that function can return more than one character you may need to preallocate enough space in the variable before you call the function. > >
>lcTest = space(40) && allocate room for the max returned value
>
> >>>
>>>DECLAREinteger GetCashDrawerStatus IN poscd2.dllSTRING @
>>>lcTest = []
>>>GetCashDrawerStatus(@lcTest)
>>>