Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:08 12 Sep 2026 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 : MM Manual Bug, Str$(Var) vs Str$(funct)

Author Message
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1769
Posted: 08:19am 04 Feb 2016
Copy link to clipboard 
Print this post

@Geoff

regarding the description in MMBasic Manual Ver 5.1 (eg p54):

DIM a, b$, nbr(100), str$(20)
DIM a(5,5,5), b(1000)
DIM str$(200) LENGTH 20
DIM STRING str(200) LENGTH 20


This shows IMHO a wrong and misleading use of the (array) variable name STR$(). STR$() is a reserved word, a MMBasic function and I fear it could confuse some beginners. This only applies to the manual!

Proof:
Dim Str$(1)=("TEST","BEST")
Print Str$(1)


Regards
Michael

Edited by twofingers 2016-02-05
‚My name is Ozymandias, king of kings
Look on my works, ye Mighty, and despair!‘
Nothing beside remains. Round the decay
Of that colossal wreck, boundless and bare
The lone and ...
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3368
Posted: 11:50am 04 Feb 2016
Copy link to clipboard 
Print this post

Thanks Michael, well spotted. I will update the manual for the next release.
Geoff Graham - http://geoffg.net
 
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 2026