What is the data type of characters ie. "!", "+" in FreeBASIC?

54 Views Asked by At

I tried char and vargchar, but none of them work. i want to build a calculator and want to ask the user what symbol they want to use like +,-

i tried doing char and vargchar, but none of them work. using fbide

1

There are 1 best solutions below

0
Sir Jo Black On

In BASIC (Freebasic/Qbasic/GWbasic) there's no a char type; there's string type! Then you may consider char as it's a string of one byte.

Freebasic sample (also Qbasic):

dim x as string

x ="A"
print x

Gw-Basic/Qbasic sample:

x$ = "A"
print x$