Author Topic: .bi file question  (Read 2960 times)

0 Members and 1 Guest are viewing this topic.

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
.bi file question
« on: November 20, 2021, 01:21:24 pm »
I am using a lot of bi files to help organize my app. I noticed that it doesn't seem to recognize my other subs in other bi files or main file when working with it in the IDE.
There are no errors, but each file in itself sometimes will cause an error when referencing a sub or function outside of that bi file.

Is there a way to make that not do it?

For example this does not error out (and shouldn't) when run, but when editing it in the IDE it has a syntax error, or a false positive
Code: QB64: [Select]
  1.                     Case 1:
  2.                         I = r(2)
  3.                         If I = 1 Then
  4.                         lwrite "`2 " '<-- syntax error here
  5.                         else
  6.                         lwrite "`0 " <-- syntax error here too
  7.                         end if

lwrite - is an actual function and works as expected, however, it is causing an error when editing it in the IDE. I just ignore it, as I know the program works fine.

Note this is an example, it is not just the lwrite, that is erroring out, there are a few vars, and sub calls that are syntax errors too. They are correct , and the program compiles fine.

For example, the r(2) function works fine. and doesn't err, even though that too, is outside this .bi file.

I don't mind, it's just an annoyance, so thought I would ask to see if this is an IDE issue, or something I can do differently.

thanks!
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: .bi file question
« Reply #1 on: November 20, 2021, 01:45:01 pm »
Consolidate your Bi's.

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: .bi file question
« Reply #2 on: November 20, 2021, 03:06:53 pm »
did that, it would seem a couple of them were nested. that might have been an issue. but again.. it complies fine.. just a quirk
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!