+ Reply to Thread
Results 1 to 3 of 3

Passing Boolean Variable To A Function

  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    Canada
    Posts
    17

    Passing Boolean Variable To A Function

    Hi,

    This might be a dumb question but is it possible to pass a boolean variable as a parameter to another function?

    I have the following code that produces some compile error ("expected ="):

    Please Login or Register  to view this content.
    Create_New_Order is a function with the following parameters:

    Please Login or Register  to view this content.


    Thanks for your reply~!
    Last edited by Shama; 11-25-2008 at 11:18 PM.

  2. #2
    Registered User
    Join Date
    11-20-2008
    Location
    Canada
    Posts
    17
    OK.

    It appears I've solved my own problem.

    Just add "Call" in front of the function and it will work fine.

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Functions return a value, ergo the need for "=". If you don't want the procedure to return a value then use a Sub.

    If you are calling it as a Sub as I suspect:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1