PDA

View Full Version : This message concerns an error . . . . .



TBProgramer52
28-04-2014, 05:26
I do wish to mentioned there is an error in the Tutorial example such as the console creation.
Such as:

Uses "Console"
Console_WriteLine("Hello, I am console, who are you?")
Dim Name As String = Console_ReadLine()
Console_WriteLine("Hello " + Name)
Console_WriteLine("Nice to see you again!")
Console_WaitKey

The variable Name is not a String variable without the '$' on the end, Please do correct this!

ReneMiner
28-04-2014, 07:50
guess because Name became a Keyword for UI-module (Dialog New Name...)
exchange it to "sName" in the example and all should be fine.

Petr Schreiber
28-04-2014, 18:50
Thanks for reporting this,

the $ is not mandatory for string variables in ThinBASIC, but Rene hit the nail on the head.

Fix done, sent to Eros, will be present in next release!


Petr