Subject calling part of .wfm from another .prg
From Milind Nighojkar <milinigh@yahoo.com>
Date Wed, 29 Dec 2021 12:39:00 -0500
Newsgroups dbase.getting-started

Scenerio:
There are few .wfm statements in    function GRID1_onOpen()
nCol = form.grid1.currentcolumn
m_COL_name = 'COLUMN'+ltrim(rtrim(str(1)))

Want to call these 2 statements from external .prg say temp.prg

Issue seen
When temp.prg is called in  function GRID1_onOpen() get error message saying 'variable form not defined'

Any suggestions?

Milind Nighojkar