my program is running fine in the desktop environment. When I try to compile it I get that error on line 1 of the first Module. The module starts like this
Whatever your problem is its not in that code fragment. Post some more complete source that fails, preferably as sbp and bas project files and we can take a look.