Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
convert a number into a string
#1
hey,

i have 2 variables: num1% which is an integer and num2$ which is a string

num1% = 1111

i need num2$ = "1111"

this is because my function takes only strings

how can i achieve this?

thanks
Reply
#2
STR$ Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#3
Code:
CLS
num1% = 10
num2% = 30

nStr$ = str$(num1%) + str$(num2%)

PRINT nStr$
As easy as that! =P
Reply
#4
what is the opposite of a str$( function?

Is there anyway to convert a string like "1111" into the number 1111?
Reply
#5
VAL()

num = VAL("111")
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)