CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Microsoft VBScript compilation (0x800A0414) Cannot use parentheses when calling a Sub

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    85
  • Date Created
    Thursday, December 30, 2010
  • Last Updated
    Thursday, December 30, 2010
  • This Article Has been Viewed
    2465 times
  • Short Desc
    When you want to send a certain amount of characters to the page, you have to provide the code properly and with all the parentheses.
  • Details
    When creating your Variable to send only a certain amount of characters to the page, you have to provide more parentheses within your script to make it work correctly and without error, as demostated below.

     
    Microsoft VBScript compilation (0x800A0414)
    Cannot use parentheses when calling a Sub
    /File.asp, line 298, column 32
    Response.Write(left(catdesc),50)
  • Recreate Issue
    To recreate this issue:

    <%
    =left(catdesc),50
    %>
  • Resolve Issue
    To resolve this issue:

    <%
    =mid(trim(catdesc),1, 50)
    %>


    The above code provides the needed data to get the results that you are wanting.
    As you can tell, the difference between this code and the one above in the Recreate.
    We have provide the needed parentheses and extra data.