I am trying to take some large (debugged and working) Subroutines and Functions out of my main program and compiling them into a unit (.PBU) file. I have RT(F)M but I think that it assumes greater experience than I have. How is this done in cookbook terms (i.e. step 1, step 2, etc.) ? In one case I have a subroutine that simply draws a box on the screen:
SUB DrawSingleBox (UpperLeftRow%, UpperLeftColumn%, LowerRightRow%, LowerRightColumn%, Foreground%, Background%)
'code to draw box
END SUB
In another case I am trying to compile the GetCMOS () program out of Quickpack Professional. I have DECLARED both in the Main program and unit file but still get error messages (462: Undefined SUB/FUNCTION reference). Do I need an EXTERN statement?
Help!
------------------
SUB DrawSingleBox (UpperLeftRow%, UpperLeftColumn%, LowerRightRow%, LowerRightColumn%, Foreground%, Background%)
'code to draw box
END SUB
In another case I am trying to compile the GetCMOS () program out of Quickpack Professional. I have DECLARED both in the Main program and unit file but still get error messages (462: Undefined SUB/FUNCTION reference). Do I need an EXTERN statement?
Help!
------------------
Comment