Passing Array() with Default Value in Method

  1. last week

    I feel like I'm having a brain fart - I can't figure out how to pass an array with default values in a method.

    as in something like

    sub MyMethod( the_name as string = "pringles", the_number as double = 3.3, some_numbers() as integer = ???? )

    What am I missing? Thanks!

    Off the top of my head:

    sub MyMethod(the_name as String = "Pringles", optional some_numbers() as Integer)

    Small chance that's not right.

  2. Tim P

    Sep 11 Pre-Release Testers Answer Rochester, NY

    Off the top of my head:

    sub MyMethod(the_name as String = "Pringles", optional some_numbers() as Integer)

    Small chance that's not right.

  3. Welp that's it! Thanks for helping get past my morning brain block! :)

or Sign Up to reply!