• Switchboard Modification (A97)

    Author
    Topic
    #378422

    Is it possible to modify the code in the swithboard so that yoy can use arguments in the run code call? The current code is
    Case conCmdRunCode
    Application.Run rst![Argument]

    but this bombs out with an error if you add arguments

    Many Thanks

    Peter

    Viewing 1 reply thread
    Author
    Replies
    • #626381

      I call functions from the switchboard that change the properties on my forms so that I can use the same form for several different purposes. I’ve never had any problems with this, however I’ve never used an argument in one of these functions. I can see no reason why calling a function with an argument won’t work, so this might be one solution you could try.

    • #626383

      You can replace Application.Run by Eval.
      When editing the switchboard item, enter the function call as you would in VBA, for example

      MyFunc(“Canada”, 32)

      • #626654

        Thanks Hans

        Now it works like I expected it to in the first place!! smile

        Peter

    Viewing 1 reply thread
    Reply To: Switchboard Modification (A97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: