clearrecord(recdef,idx)

Clear data in the form based on given definition. If index given this is for multi form.

Parameters

- recdef : record definition for form

- idx : the index for the sub form of main form if not defined