We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What command should I use to make my program pause until the user presses a key?
#19
(translated by Google translator)

Hi, Elzaimer  Shy
In fact, in Small BASIC all variables have one type: primitive.
This type allows you to process a wide variety of data. But, for such versatility you have to pay with speed.
However, there are several methods that allow you to check the type of data that is in a variable.

Array.IsArray(array)
LDUtilities.IsNumber(input)

To avoid confusion, I always use a prefix in variable names.

n_varName => numeric
b_varName => boolean
s_varName => string
lis_varName => list
arr_varName => array
shp_varName => shape

and so on.
[-] The following 2 users Like AbsoluteBeginner's post:
  • litdev, z-s
Reply


Messages In This Thread
RE: What command should I use to make my program pause until the user presses a key? - by AbsoluteBeginner - 06-30-2024, 07:44 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)