Questions tagged [powerbasic]

PowerBASIC is the brand of several commercial compilers.

PowerBASIC is the brand of several commercial compilers

http://powerbasic.com/

4 questions
3
votes
2 answers

grep regex to ignore comment at end of line

I'm trying to grep through a lot of old PowerBASIC source files in search of a variable, but I'm having trouble getting grep to avoid matching references to the variable in the end-of-line comments. For example: ANGLE = 40 ' THIS IS A COMMENT…
Vilhelm Gray
  • 11,516
  • 10
  • 61
  • 114
1
vote
2 answers

Explanation of trailing character %

In an ancient PowerBasic file, I found this in the code: %AppendRec= 1% '^a Write/Append Btrieve record to named file %PrtBar= 2% '^b Print a Bar Code My question deals with the numbers after the = sign. I assume the trailing % has a…
Amiga500
  • 5,874
  • 10
  • 64
  • 117
0
votes
1 answer

Create BSTR from ASCIIZ PTR in PowerBasic sqlite3 Wrapper

I'm building a small wrapper for some sqlite3 functions. sqlite3.dll has a function sqlite3_column_text16() that returns a UTF-16 string. This seems like the right function to call since PowerBasic and Windows (and OLE) use UTF-16 natively (called a…
Russ
  • 31
  • 5
0
votes
3 answers

How to pass a list to a subroutine in BASIC-256

I am having difficulty passing a list to a subroutine (embarrassment); I get a compiler error. I have followed the BASIC-256 documentation on arrays (http://doc.basic256.org/doku.php?id=en:arrays) and included the [] brackets in the subroutine…
awyr_agored
  • 613
  • 3
  • 19