VB: Variables/Parameters
Results 1 to 2 of 2

Thread: VB: Variables/Parameters

  1. #1
    Senior Member
    Join Date
    Dec 2001

    VB: Variables/Parameters

    in the parameters in a function/sub how do you make a variable optional?

    public sub XYZ (variable1 as integer)
    end sub

    how would you mae variable 1 optional?
    -[h3llbringer] is back, again.
    -MSN CLoNE.

  2. #2
    AO Antique pwaring's Avatar
    Join Date
    Aug 2001
    As far as I am aware, just don't pass the variables to the sub when you call it. So long as you don't use this variable within it, there shouldn't be any problems.
    Paul Waring - Web site design and development.

Posting Permissions

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