Parentheses are not allowed when sub is called.

Source: Internet
Author: User

The prompt"TestRun cannot continue due to a syntax error "parentheses cannot be used when calling sub.

Solution: Call

Generally, this error occurs when no return value is returned during the call process. It should be said that the call parameter value assignment is incorrect. This error can be solved by calling.

A process call that does not return a value cannot be enclosed in parentheses. Therefore, you should write treesort cat_id and childcount.
If you are not used to it, you can add call to call treesort (cat_id, childcount)
That is to say, parentheses are added when there is a call, and no parentheses are used when there is no call. In addition, a space is required between the function name and parameter.

**************************************** *******************************

However, the call is not required in reference materials, but an error occurs when calling the call without parentheses (invalid characters are prompted). Why?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.