You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

1

Thursday, March 27th 2014, 8:05pm

Added Console.Print and Console.Input

I have long thought about it, but sorry, I like it. So I have now done it in the Framework:
[ http://www.jabaco.org/wiki/Latest_JabacoFramework_Binary ]

You know, that to write on the Console you write

Jabaco Source

1
System.out.println("Hello")
or simple

Jabaco Source

1
out.println("Hello")


But that isn't VB-like.

In Jabao you write in the PictureBox with

Jabaco Source

1
Picture1.Print("Hello")
, in the Form

Jabaco Source

1
Form.Print("Hello")
and in the Debug-Window with

Jabaco Source

1
Debug.Print("Hello")

So I have now added for the Console a

Jabaco Source

1
Console.Print("Hello")


Visual Basic 6 don't support the console. But I think, this command would be existing, if console support would be part of VB6.

Additional there is a little "Console.Input". Here an example:

Jabaco Source

1
2
3
4
5
6
7
Dim tmpStr As String
Console.Print("Please input a text:")
tmpStr = Console.Input()
Console.Print("You have input '" & tmpStr & "' as text.")
Console.Print("")
tmpStr = Console.Input("Please input an other text: ")
Console.Print("Your new text was: '" & tmpStr & "'.")


I think it is a lot of easier, then the handling with arrays in the "ConsoleQuiz" of the Jabaco Samples.


Additional I have changed the ExceptionDialog, to set the details as default off.
It makes no sense, to change it on and off, when it is as default on. Before anybody presses the button for lesser details, they pressed the button, to close the dialog.

Greatings
theuserbl

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Thursday, March 27th 2014, 8:13pm

Oh, before I forget it:
If you want to start a Console.Input in the Jabaco-IDE, you have to set in the "Project" area selecting the Tree-path "Project" and set the property for "Startup" to "Console" and NOT to "Window".

If you selected at the beginning "Console Application", then "Console" is in the properties set as default.
But if you have choosen, for example "SDI Application", then "Window" is in the properties set as default.

If "Window" is set, then you become some errors, if you start your program.

Greatings
theuserbl

jbExplorer

Trainee

Posts: 111

Date of registration: Mar 18th 2013

  • Send private message

3

Sunday, March 30th 2014, 5:09pm

Oh, before I forget it:
If you want to start a Console.Input in the Jabaco-IDE, you have to set in the "Project" area selecting the Tree-path "Project" and set the property for "Startup" to "Console" and NOT to "Window".

If you selected at the beginning "Console Application", then "Console" is in the properties set as default.
But if you have choosen, for example "SDI Application", then "Window" is in the properties set as default.

If "Window" is set, then you become some errors, if you start your program.

Greatings
theuserbl


Thanks, theuserbl, will try it during the week.

Rate this thread
WoltLab Burning Board