HexToInt?

BlitzMax Forums/BlitzMax Programming/HexToInt?

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.

Here' one I wrote long ago for Blitz Basic. You're welcome to Maxify it.
Function HexToInt( HexStr$ )
	HexStr$ = Upper$( Trim$ ( HexStr$ ) )
	For d = 1 To Len( HexStr$ )
		h$ = Mid$( HexStr$, d, 1 )
		n = 16 * n + Instr( "123456789ABCDEF", h$ )
	Next
	Return n 
End Function