Jose's Read Only Forum 2023

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: Pierre Bellisle on December 28, 2022, 02:39:20 AM

Title: REM ' // comment
Post by: Pierre Bellisle on December 28, 2022, 02:39:20 AM
Hi Charles,

About REM, ', and //. Looking at the help they all should be the same.

I often do something like "case WM_SIZE + 999" to quickly stop a window message temporary while testing.

In the following code, only "//"  work, "REM" and "'" give "Linker found unidentified names" error.

No problem if there is no "+ 0".

No big deal, still, I prefer to make mention of it, in case it hide something else more important...


       case WM_SIZE + 0 'a, b
       case WM_SIZE + 0 REM a, b
       case WM_SIZE + 0 // a, b
Title: Re: REM ' // comment
Post by: Charles Pegge on December 28, 2022, 09:29:15 AM
Thanks Pierre,

I'll remove any references to REM but it will still work at the beginning of a statement.

In general, put a colon after the case evaluator statement:


% WM_SIZE 4
int a=6
select a
  case WM_SIZE+1 : ' a, b
    print 5
  case WM_SIZE+2 : REM a, b
    print 6
  case WM_SIZE+3 : // a, b
    print 7
end select
Title: Re: REM ' // comment
Post by: Pierre Bellisle on December 30, 2022, 02:54:16 AM
Thank Charles...