I waited patiently for module support in trying to convert my JAVA Regatta Management System into Basic4PPC. Tablet PC vs Pocket PC!
I had gotten around some of the difficulty of common routines by replacing the >.< with >_< and placing them in a .txt file but was constantly making "code" mistakes habitually using the >.<.
So I fired up v6.5, used Notepad to change "underscores" back to "dots", renamed ".txt" to ".bas" (which logically it should have been anyway) and clicked "Load Existing Module". ERROR: "Input String not in a correct format"
Tried to Add a New Module using the same name. ERROR: "Module File with this name already exists.
Renamed back to ".txt", went into to Notepad for a big copy/paste and Clicked Add New Module: There was the obsequious Sub Globals. Pasted code, saved module, checked with NotePad. Front end looks identical to any normal ".sbp" program.
Figured by now, I'd better stop and check the new Help File for Modules and then got the really BAD NEWS! :sign0148: The new Basic4PPC has, in its infinite wisdom, decided to embrace the word "PUBLIC"!
One of the overwhelming reasons for using modules is for sharing both global variables and common code routines and to access anything, anywhere by simply prefixing the request with the module name. To achieve this objective, one would logically make "PUBLIC" the DEFAULT and for those instances where one DID NOT want sharing, use "PRIVATE".
So now I have to create a blank.sbp for every module, then cut & paste code, then REPLACE all Dim's with Public and THEN add Public to each and every Sub! :sign0137:
Yep! Disappointed! But at least I've got my Module support! :sign0060:
Regards,
Ed Sharp
I had gotten around some of the difficulty of common routines by replacing the >.< with >_< and placing them in a .txt file but was constantly making "code" mistakes habitually using the >.<.
So I fired up v6.5, used Notepad to change "underscores" back to "dots", renamed ".txt" to ".bas" (which logically it should have been anyway) and clicked "Load Existing Module". ERROR: "Input String not in a correct format"
Tried to Add a New Module using the same name. ERROR: "Module File with this name already exists.
Renamed back to ".txt", went into to Notepad for a big copy/paste and Clicked Add New Module: There was the obsequious Sub Globals. Pasted code, saved module, checked with NotePad. Front end looks identical to any normal ".sbp" program.
Figured by now, I'd better stop and check the new Help File for Modules and then got the really BAD NEWS! :sign0148: The new Basic4PPC has, in its infinite wisdom, decided to embrace the word "PUBLIC"!
One of the overwhelming reasons for using modules is for sharing both global variables and common code routines and to access anything, anywhere by simply prefixing the request with the module name. To achieve this objective, one would logically make "PUBLIC" the DEFAULT and for those instances where one DID NOT want sharing, use "PRIVATE".
So now I have to create a blank.sbp for every module, then cut & paste code, then REPLACE all Dim's with Public and THEN add Public to each and every Sub! :sign0137:
Yep! Disappointed! But at least I've got my Module support! :sign0060:
Regards,
Ed Sharp