'I don't know if you are asking something like this... but...
'In a form put a commandbutton, paste the code and click it
'..............................
Private sub command1_click()
dim TheStart as integer: TheStart=2
dim TheLength as integer: TheLength=3
dim MyString as string: MyString="A long text"
msgbox mid$(MyString,TheStart,TheEnd)
msgbox left$(MyString,TheLength)
msgbox right$(MyString,TheLength)
end sub
Last edited by Rabbit; Sep 17 '15, 03:09 AM.
Reason: Please use [code] and [/code] tags when posting code or formatted data.
Comment