REM ***** BASIC *****
Function MAX89(a)
String aa
Dim L,tstv,mx
REM
L= Len(a)
If L = 1 then
MAX89 = a
else
mx = 0
REM
For c = 3 to l step 2
tst = MID(a,c,1)
tstv = val(tst)
If tstv > mx then
mx = tstv
MAX89 = mx
endif
Next c
Endif
if a = "Disqualified" then
MAX89 = 1
endif
End Function
[erAck: edited to format as code, see This is the guide - How to use the Ask site? - #6 by erAck]