Questions about the BASICtools and MakeItC
Post Reply
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am


Post by YahooArchive »

> The basic contains LEFT, and RIGHT, but no MID.
> I would like to pull one

A single character can be accessed by string(i), starting from 0.

LEFT and RIGHT will remain as built in functions, but mid would be
done by-

function MID (byref s as string, start, length) as string
dim temp(255) as string

temp = right(s,len(s) - start)

return left(temp,length)
end function

Post Reply