ODBiC Discussion Board


You need quotes around the file name

by Roger Harris, January 26, 2007 00:37

Since deleteFile is a function, and all function arguments can be expressions (i.e. like a SET statement), the "/" is being interpreted as a division operator, so you're probably getting a "non-numeric expression" error. In expressions, any character strings that contain "special characters" that can be interpreted as operation symbols need to be enclosed in either single- or double-quotes:

<% deleteFile("/hshome/sad9001/a0z9.com/users/$user$/$dfilename$") %>

(Strings that don't contain special characters don't need to be enclosed in quotes, but it's not a bad idea to always use them anyway.)



Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 

          


Copyright ©1997-2003, Roger Harris. All rights reserved.