The copy from table to window statement transfers the contents of all auto-copy fields from the specified table buffer to the specified window for the current form.
copy from table table_name to window window_name
• table_name – The name of the table buffer you want to copy the field contents from.
• window_name – The name of the window you want to copy the field contents to.
The copy from table to window statement can access table buffers and windows for only the current form. The copy from table to window statement can’t be used to copy information from a table buffer in one form to a window in another form.
You can’t use the copy from table to window statement in a procedure because the current form isn’t known and can’t be specified. You can use the statement in a form level procedure because the current form is implied by where the form level procedure is attached.
Window fields are specified as auto-copy using the AutoCopy property in the Properties window.