buffer-field():available

Posted by leighgiles on 07-Jan-2011 04:30

G'day,

I am trying to use the available attribute of the buffer-field handle.

bufferhandle:buffer-field("fld"): available works if fld is a field in the buffer.

If fld isn't a field in the buffer a message no 7351 is displayed.

regards

Leigh

All Replies

Posted by Admin on 07-Jan-2011 04:42

What do you want to do?

I you want to check if the buffer contains a record, bufferhandle:available is sufficient.

I you want to check if the field is available available (bufferhandle:buffer-field ("fieldname")) should do.

Not sure, if the latter needs a no-error of not.

Posted by leighgiles on 07-Jan-2011 05:02

the available (bufferHandle:buffer-field("fld")) didn't work but valid-handle(bufferHandle:buffer-field("fld"))  does

thanks

This thread is closed