Well, there is a way to tell darkbasic to compile some code. I believe the call is EXECUTE FILE DB.EXE,C
I am not exactly sure how to correctly format the command part at the end. there are 3. One is compile, one execute, and the other is to build final. C should be compile. Sorry I can't give you much more complete advice, I read about it a while ago, but haven't put it to good use.
Try searching the forums for things like shell execute dark basic and such, you might find it.
Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?