Results 1 to 3 of 3

Thread: [Resolved] Specify optional value for dropdownlist

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    243

    Resolved [Resolved] Specify optional value for dropdownlist

    Quick question, what do I put for the optional value for a dropdownlist?

    Private Function SQL(ByVal bldg As Integer, Optional ByVal StudentID As String = "",
    Optional ByVal combo As DropDownList = WHAT TO PUT HERE)
    As String

    Thanks in advance
    Last edited by zombie_man23; Sep 27th, 2005 at 09:22 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Specify optional value for dropdownlist

    Optional argument values have to be constants so the only thing you could put would be Nothing.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    243

    Resolved [Resolved] Specify optional value for dropdownlist

    Perfect........thanks!!

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