vb truncate text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elderfrog
    New Member
    • Jun 2015
    • 2

    vb truncate text

    How to truncate text in VB? Need to unclutter the map.
    ArcGIS mapping environment.
    Only want 1st 5 characters of parcel field "Street".
  • trystan4861
    New Member
    • Sep 2015
    • 3

    #2
    Code:
    '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

    Working...