The Current form window command returns the reference of the current form window. If no window has been set for the current form, the command returns 0.
The current form window can be generated automatically using a command such as ADD RECORD, following a user action or by using the Open window or Open form window commands.