Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:05 12 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Test OPTION BASE setting?

Author Message
erbp
Senior Member

Joined: 03/05/2016
Location: Australia
Posts: 195
Posted: 12:10am 06 Dec 2018
Copy link to clipboard 
Print this post

I would like to be able to programatically test the OPTION BASE setting. This thread has some very useful information on using PEEK to check the values of various OPTIONS, but the ones referenced are mostly related to display and touch settings.

Does anyone know how to use PEEK to check the OPTION BASE setting?

Phil.
 
erbp
Senior Member

Joined: 03/05/2016
Location: Australia
Posts: 195
Posted: 10:16am 06 Dec 2018
Copy link to clipboard 
Print this post

I've found the answer to my question.

Since the OPTION BASE setting is not one that is saved it is not visible via the PEEK method that can be used with saved options like AUTORUN, BAUDRATE, etc.

OPTION BASE is used within the program, as long as it is before any DIMs/LOCALs that create arrays, and can again be re-used after a CLEAR to delete all variables. It's value (0 or 1) only really exists while the program is running.

Phil.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025