I found what to me looks like a discrepancy in the documentation for the use of strings.
At this page : FBWiki : KeyPgString : https://www.freebasic.net/wiki/wikka.ph ... eyPgString
it says at end of desription :
String variable names need not end in a dollar sign $ as in other dialects of BASIC. In lang fb variable suffixes, including the dollar sign, are disallowed entirely
At this page : FBWiki : KeyPgStringFunction : https://www.freebasic.net/wiki/wikka.ph ... ngFunction
it says about Dialect Differences :
The string type suffix "$" is optional in the -lang fblite and -lang fb dialects
So one place it says $ is optional (which means I may use if I like but do not have to) and the other place says $ is disallowed entirely = forbidden.
Documentation about strings [SOLVED]
Documentation about strings [SOLVED]
Last edited by Trinity on Sep 22, 2017 10:21, edited 1 time in total.
Re: Documentation about strings
Yes, this is one of the last fixes of dkl in the rev 1.06.0:
[fixed] (rev 1.06.0)
- #832: Fix bug allowing QB style suffixes on all keywords, regardless of -lang
But the corresponding bug report (#832) is not still closed!
I think that many function-keywords are concerned (String(), Left(), Right(), Mid(), .....).
The documentation should to be updated accordingly (when I would have made the list of all impacted keywords).
[fixed] (rev 1.06.0)
- #832: Fix bug allowing QB style suffixes on all keywords, regardless of -lang
But the corresponding bug report (#832) is not still closed!
I think that many function-keywords are concerned (String(), Left(), Right(), Mid(), .....).
The documentation should to be updated accordingly (when I would have made the list of all impacted keywords).
Last edited by fxm on Sep 20, 2017 16:45, edited 3 times in total.
Re: Documentation about strings
OK , thank you very much :-)
Re: Documentation about strings
Done: documentation updated for String, Space, Chr, Hex, Oct, Str, Mkd, Mki, Mkl, Mks, Left, Mid, Right, Lcase, Ucase, Ltrim, Rtrim, Trim, Command, Inkey.
Re: Documentation about strings
Thank you very much for all your effort :-)fxm wrote:Done: documentation updated for String, Space, Chr, Hex, Oct, Str, Mkd, Mki, Mkl, Mks, Left, Mid, Right, Lcase, Ucase, Ltrim, Rtrim, Trim, Command, Inkey.
A question though : will yours and other peoples updates and corrections to the on-line Wiki be compiled regularly into off-line help files for download ?
Re: Documentation about strings
Yes, a current fbc version (32-bit and 64-bit) compiled daily (with also the manual) is available at http://users.freebasic-portal.de/stw/builds/
Re: Documentation about strings
Wow ! , that is just so great ! , thank you to whoever is doing all the work :-)fxm wrote:Yes, a current fbc version (32-bit and 64-bit) compiled daily (with also the manual) is available at http://users.freebasic-portal.de/stw/builds/
And thank you for your answer :-)