dsOpen(FileName as String, Channel as Number @) as Number dsReadRec(Channel as Number, Key as String, KeyNumber as Number, Record as String @) as NumberYou can see that the second function does not want it by reference...because you need to know the channel to make the call. In dsReadRec(), the record is returned by reference in the last parameter.
ods.dsConnect("192.168.1.99",8227,40000) ? ods.dsOpen("g:\ssi605\data\ic\iclots", 4) lcKey = '' ? ods.dsGetKeyFirst(4, @lcKey) && shows error 13, impoper file access...file 4 is not open ? ods.dsGetKeyFirst(1, @lcKey) && shows -1, success ? lcKey && shows the key for the first record in iclotsIn this example, the file was opened under channel 1, and if I could get the 2nd parameter by reference, everything would be peachy.