I have a textbox. it has a fairly random value, but always has atleast one digit within that value, the total character count of the value is always 4.
example of what the value may be:
">8 < and T removed.
I've tried playing a bit with seltext and such but get myself into a nasty loop / hang.
the code im currently trying to build is pretty sketchy.
buffer.Text = Text1.SelText 'which is where I get the 4 character value
buffer.SelStart = 0 ''select the
buffer.SelLength = 1 'first character
If Not IsNumeric(buffer.SelText) Then
buffer.SelText = "" 'if the first character is not numeric, remove it
GoTo prebuffer1 'start again to check the next character
Resume Next 'if character is numeric, continue with remaining syntax
pretty much, there is an issue with this code, even if it did work, it would only remove those non numeric characters that came before any numeric characters, then it would move on to the remaining code thinking all was fine, when in fact, if this code worked, it would leave me with a value of "8 sign.
preferrably I'd like to do this without additional modules or api calls, but if there is no other way, so be it.