Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 23:25 06 May 2024 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: 1133
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
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
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.

© JAQ Software 2024