Documentation about strings [SOLVED]

Forum for discussion about the documentation project.
Post Reply
Trinity
Posts: 214
Joined: Sep 16, 2017 17:07

Documentation about strings [SOLVED]

Post by Trinity »

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.
Last edited by Trinity on Sep 22, 2017 10:21, edited 1 time in total.
fxm
Moderator
Posts: 12106
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Documentation about strings

Post by fxm »

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).
Last edited by fxm on Sep 20, 2017 16:45, edited 3 times in total.
Trinity
Posts: 214
Joined: Sep 16, 2017 17:07

Re: Documentation about strings

Post by Trinity »

OK , thank you very much :-)
fxm
Moderator
Posts: 12106
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Documentation about strings

Post by fxm »

Done: documentation updated for String, Space, Chr, Hex, Oct, Str, Mkd, Mki, Mkl, Mks, Left, Mid, Right, Lcase, Ucase, Ltrim, Rtrim, Trim, Command, Inkey.
Trinity
Posts: 214
Joined: Sep 16, 2017 17:07

Re: Documentation about strings

Post by Trinity »

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.
Thank you very much for all your effort :-)
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 ?
fxm
Moderator
Posts: 12106
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Documentation about strings

Post by fxm »

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/
Trinity
Posts: 214
Joined: Sep 16, 2017 17:07

Re: Documentation about strings

Post by Trinity »

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/
Wow ! , that is just so great ! , thank you to whoever is doing all the work :-)
And thank you for your answer :-)
Post Reply