Short Description
|
Using TESHOW in FileExists not working?
|
Entered
|
By:
Michael - Charleston
When: 1998-12-04 13:55:43 Build: 1.03.07A
|
Categories
|
Type:
Question
Department: Product
Category:
SurferScript
|
Description
|
I am using the following code in my template:
<TEDECLARE VAR fileName TYPE=TEXT>
<TESET fileName='c:\\Screensurfer\\HostServer\\docs\\'+web.link1+'\\'+web.link2>
Files exists returns <TESHOW FileExists("c:\\Screensurfer\\HostServer\\docs\\CaseProfiles\\CP101997000001.html")>
FileExists("c:\\Screensurfer\\HostServer\\docs\\<TESHOW web.link1>\\<TESHOW web.link2>")<BR>
Files exists returns <TESHOW FileExists("c:\\Screensurfer\\HostServer\\docs\\\\")><BR>
fileName is <TESHOW fileName>
Files exists returns <TESHOW FileExists(fileName)><BR>
weblink1 is <TESHOW web.link1>
weblink2 is <TESHOW web.link2>
This is what I get:
Files exists returns 1
FileExists("c:\\Screensurfer\\HostServer\\docs\\CaseProfiles\\CP101997000001.html")
Files exists returns 0
fileName is c:\Screensurfer\HostServer\docs\
Files exists returns 1
weblink1 is CaseProfiles webli
|
|
Append
|
By: WindSurfer When: 1998-12-04 14:01:02 New Status:
Pending Customer
|
Comment
|
Your TEDECLARE VAR for FileName is missing a length-- this will default the variable text size to 32...so, declare it with length of 200 or something and I think it will fix this...
|
|
Append
|
By: Michael - Charleston When: 1998-12-04 14:16:40 New Status:
Closed
|
Comment
|
Yep, now I'm cooking with gas ....
Guess the lesson here is don't use a TESHOW or more than one variable in a FileExists() parameter!
|
|
Append
|
By: WindSurfer When: 1998-12-04 14:18:49 New Status:
Pending Customer
|
Comment
|
Actually, I missed that error... :)
You definitely don't need the TESHOW to concatenate the text string, since you are ALREADY in an expression...just "text"+web.variable+"text", for example...
|