Str_to_Int not working in BMax, why?

BlitzMax Forums/BlitzMax Programming/Str_to_Int not working in BMax, why?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Um i dont under stand why you are doing it this way while you have commands like

1: string.ToInt()
2: string.FromInt( strlen:int )

A = 1
B = 2

Print "A: "+A
Print "B: "+B

SA$ = IntToStr(A)
SB$ = IntToStr(B)

Print "A-String Len : "+Len(SA)
Print "B-String Len : "+Len(SB)

A = StrToInt(SA)
B = StrToInt(SB)

Print "A: "+A
Print "B: "+B

Function IntToStr$( strlen:Int )
	Return st$.FromInt( strlen:Int )
End Function 

Function StrToInt( st:String )
	Return st$.ToInt()
End Function

WaitKey()