locked
Error BC30800: Method arguments must be enclosed in parentheses. RRS feed

  • Question

  • User-893002196 posted

    Dear All,

    I getting above error at Line: 376. Anyone could help me?

    Thank you.

    Regards,

    Micheale

    Line 374:		Dim thisMemberUPID As String=objDataReader("MembershipID") 
    Line 375:		Dim urlName As String = objDataReader("GivenName")
    Line 376:		Response.write "mytree.add("& objDataReader("MembershipID") &", -1, '"& objDataReader("MemberCode") &"', 'javascript:NMM2(\'"& objDataReader("MemberCode") &"\', \'"& parentCode &"\',\'"& parentCode &"\');', ' "& objDataReader("MemberCode") &" ', '','', '','','"& urlName &"');" & vbCr		
    Line 377:		Dim uplines As String = getAllUpline(objDataReader("MembershipID"), 1)
    Line 378:		Dim uplinesFrmAMM As string = thisMemberUPID & "," & AllUplineIDStr
     
    Wednesday, May 13, 2009 3:39 AM

Answers

  • User-46888941 posted

     Since Response.Write() is a method, you need parantheses around the contents.

     
    Response.Write("mytree.add("& objDataReader("MembershipID") &", -1, '"& objDataReader("MemberCode") &"', 'javascript:NMM2(\'"& objDataReader("MemberCode") &"\', \'"& parentCode &"\',\'"& parentCode &"\');', ' "& objDataReader("MemberCode") &" ', '','', '','','"& urlName &"');" & vbCr)
    
    
     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 13, 2009 4:23 AM