Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Calling method with no argument not working

    Hi All,

    So I have gotten the whole program to work(assignment) except for the last part. For whatever reason the interperator is not accepting the empty method call i'm passing. Please help.

    Thanks,
    RahulCalling method with no argument not working-screen-shot-2014-06-19-8.07.52-am.jpg

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    You're not calling it but assigning an empty string.
    Code:
    HackReactor.showApp = "";
    It should be:
    Code:
    HackReactor.showApp();
    I thought you already know how to call a function because you were able to call cutName function correctly.

    BTW, when posting code, it would be better to post the text not a screenshot.

  • #3
    Regular Coder
    Join Date
    Aug 2010
    Posts
    967
    Thanks
    19
    Thanked 211 Times in 209 Posts
    You call a method without
    passing arguments like this ...
    methodName();


  •  

    Tags for this Thread

    Posting Permissions

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