>
>Maybe just convert the number to a string and pass that as a parameter by reference, I think the [4RS] flag is not available in VFP8, but you can find many equivalent routines in the web:
>
>
>lnChannel = 1
>lcBuffer = bintoc(lnChannel, [4RS]
>ods.dsOpen("g:\ssi605\data\ic\icmast",@lcBuffer)
>lnChannel = ctobin(lcBuffer, [4RS])
>
Thanks. Just tried it in VFP9, comes back as a type mismatch on the dsOpen() call...
For kicks I tried it with every combination of 1, 2, 4, R, and S options.
Steve Gibson