NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand
Welcome, Guest
Username: Password: Remember me

TOPIC: Syntax error. In GG BASIC

Syntax error. In GG BASIC 11 years 2 months ago #718

  • Frank C
  • Frank C's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I programmed in basic years ago and I could use a line like:

10 INPUT "How much is 2x2? "A

I used this line to get input from the person running the program. The A would be the variable for the answer to the question.
In GG BASIC what would I use to do the same thing?
The administrator has disabled public write access.

Syntax error. In GG BASIC 11 years 2 months ago #719

  • Gekko
  • Gekko's Avatar
  • Offline
  • Administrator
  • Posts: 774
  • Thank you received: 108
  • Karma: 39
Hi Frank, i link you an help i done when i programmed the GG Basic.
There is also a sample with the input field in the online list.

Anyway....
Look Here

This is the correct mode:
//Input(x, y, width, font_size, input_var)
$var = "";
Input(100, 100, 250, 24, $var)

In your case you need to use Print and after Input.
After all use Render() to show.

I'm happy you are using it, i will update it soon for iOS 6 / iOS7
If you have some functions to suggest please don't hesitate.
Last Edit: 11 years 2 months ago by Gekko.
The administrator has disabled public write access.
Moderators: Gekko