Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Beginner Q] How to use subs/functions from external file?
#3
That's very interesting, thanks for getting back to me.

The interesting points + (my experiences with them):
  • Add include at bottom of file (as mentioned - tried previously, but in isolation it did nothing)
  • Change to .bm format (this is interesting, see below - a fix but against wiki logic)

Changing the include file to .bm fixed the issue. However...

I had tried to use .bm before, but QB64pe saved this file as .bm.bas.

So, I read the wiki:

Quote:Any extension can be used, as long as the file contains code in plain text 
And decided: "If the program prefers to work with .bas files, and the wiki says any extension can be used, I'll use .bas as the extension for my include file"  Idea

It seems that this wiki statement:

Quote:Any extension can be used, as long as the file contains code in plain text 

May no longer be accurate? 

Thank you.
Reply


Messages In This Thread
RE: [Beginner Q] How to use subs/functions from external file? - by sublogic - 02-02-2025, 10:17 PM



Users browsing this thread: 2 Guest(s)