Very Elementery program... A HiLo game

erg322

New Member
Hello to everyone.

It's been many years since I have programed.

I recently received an IPAQ and I found Basic4ppc was very easy to use so I thought I would like to make my own programs for the exercise.

This is my first, a bit like doing a "Hello World".

All the very best for Christmas 2010-11
 

Attachments

  • HiLo game - 1.sbp
    2.3 KB · Views: 311

taximania

Well-Known Member
Licensed User
Longtime User
I'm not using the latest version of Basic4ppc.
The one I am using is 6.80 But it 'suits me' :)

I had to change Sub_Globals to
B4X:
Sub Globals
   'Declare the global variables here.
   Dim a,x   'These numbers take care of goal and guess
   Dim s   ' This is for Texbox values
   
End Sub

Other than that, it only took me six attempt's to get the number :sign0087:
 

erg322

New Member
Thanks Taximania for finding a version issue and giving it a go. I looked at your website and it was marvelous.

Your right it's a very limited in it's current version and looking at the code again I spotted that I should have tested the TextBox had numeric input.

The program can be a start to a technically harder program by measuring attempts times time to give a score to acheive/beat and then there is moving the goal number by a predictable amount and providing a clue.

I'm bored and have moved on but sometime I'll come back later and tweak it.
 
Top