|
| |
|
|
seth
Posts: 312 From: canada Status: offline
|
Cannot use parentheses when calling a Sub - 4/4/2006 12:22:02
This error is driving me CraZy, any ideas Microsoft VBScript compilation error '800a0414' Cannot use parentheses when calling a Sub /admin_test/viewLists.asp, line 263 Response.Write(Replace(objRS("FirstName")),"'","''") & " " & (Replace(objRS("LastName")),"'","''"))
< Message edited by seth -- 4/4/2006 12:35:11 >
|
|
|
|
seth
Posts: 312 From: canada Status: offline
|
RE: Cannot use parentheses when calling a Sub - 4/4/2006 12:53:28
hey wait a second, i want to be dealing with apostrophies not commas in the name fields, blah2 = (Replace(objRS("LastName")), "'", "''") but i getting error: Expected ')' blah2 = (Replace(objRS("LastName")), "'", "''")
|
|
|
|
rdouglass
Posts: 9228 From: Biddeford, ME USA Status: offline
|
RE: Cannot use parentheses when calling a Sub - 4/4/2006 14:04:50
quote:
blah2 = (Replace(objRS("LastName")), "'", "''") Look closely at this one: blah2 = Replace(objRS("LastName"), "'", "''") The replace function syntax is like this: Replace (stringToSearch,stringToSearchFor,replacementString) stringToSearch = objRS("LastName") stringToSearchFor = "'" replacementString = "''" That any clearer?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|