|
| |
|
|
dschmuecker
Posts: 158 Joined: 10/27/2003 Status: offline
|
If then statement - 4/6/2004 20:18:49
<%If left(FP_FieldVal(fp_rs,"details", 4) = "http" then Response.write("<a href=" & FP_FieldLink(fp_rs,"details") & "/a>") Else Response.write(FP_FieldVal(fp_rs,"details") End if%> I'm having trouble with this statement. It must be in the syntax. I want to turn a field (it's a memo field) into a link if the first 4 letters start with http. Can anyone help. It says this page can't be displayed.
|
|
|
|
BeTheBall
Posts: 6493 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: If then statement - 4/7/2004 0:28:10
I believe the first line should be: If left(FP_FieldVal(fp_rs,"details"), 4) = "http" then
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
dschmuecker
Posts: 158 Joined: 10/27/2003 Status: offline
|
RE: If then statement - 4/7/2004 0:54:50
Didn't seem to work. I get a HTTP 500 - Internal server error Internet Explorer "The page cannot be displayed" message. It works with just a straight detail result. It's a pesky problem. This is for a curriculum site I'm making for teachers at my school.
|
|
|
|
dschmuecker
Posts: 158 Joined: 10/27/2003 Status: offline
|
RE: If then statement - 4/7/2004 8:59:08
It works! Thanks Spooky. Your a legend.
|
|
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
|
|
|