specimen coursework task SDD

  • Frank Lagan
    Participant

    Hi I am doing the specimen coursework task in VB6 and cannot get the trimmed
    beach name to display. I have tried MID, MID$ and TRIM but cannot get any of them to work. Any suggestions gratefully received!
    Thanks
    Frank

    Enrico Vanni
    Participant

    Hi Frank.

    Attached is a text file containing a user-defined function that will split a string containing a space and return the part before the space. I wrote this in VB2010 but it should translate to VB6 OK.

    Lucinda
    Participant

    Try this
    ListBox1.Items.Add(Split((BeachName(i).ToString))(0))

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.