Results 1 to 6 of 6

Thread: [RESOLVED] functions within app at runtime

Hybrid View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: functions within app at runtime

    i noticed that is i put a space in the item from the list its not gonna work

    Public Sub UnloadMe()
    Unload Me
    End Sub

    Private Sub Form_Load()

    List1.AddItem "Hello"
    List1.AddItem "Procedure1"
    List1.AddItem "AnotherProcedure"
    List1.AddItem "Unload Me"

    it doesnt detect unload me because of the space

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: functions within app at runtime

    That's because they have to be valid procedure names and so they can't contain a space. To get around that you could create an UnloadMe sub that has Unload Me as it's one line of code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width