04. februar 2002 - 23:40
Der er
6 kommentarer og 1 løsning
Function
Hvad går der galt her ? Jeg burde da kunne bruge functionen ved FormatText("Hej med dig") eller FormatText(Request.Form("Text")) Function FormatText(text2format) text2format = replace(text2format, chr(13), "<br>") text2format = replace(text2format, ":-)", "<IMG SRC=i/smiley/smiley.gif>") text2format = replace(text2format, ";-)", "<IMG SRC=i/smiley/blink.gif>") text2format = replace(text2format, ":-D", "<IMG SRC=i/smiley/smileD.gif>") text2format = replace(text2format, ":-d", "<IMG SRC=i/smiley/smileD.gif>") text2format = replace(text2format, "8-)", "<IMG SRC=i/smiley/smileB.gif>") text2format = replace(text2format, "B-)", "<IMG SRC=i/smiley/smileB.gif>") text2format = replace(text2format, "b-)", "<IMG SRC=i/smiley/smileB.gif>") text2format = replace(text2format, ":-S", "<IMG SRC=i/smiley/crooked.gif>") text2format = replace(text2format, ":-s", "<IMG SRC=i/smiley/crooked.gif>") text2format = replace(text2format, ":-|", "<IMG SRC=i/smiley/disgust.gif>") text2format = replace(text2format, ":-l", "<IMG SRC=i/smiley/disgust.gif>") text2format = replace(text2format, ":-I", "<IMG SRC=i/smiley/disgust.gif>") text2format = replace(text2format, ":-(", "<IMG SRC=i/smiley/sad.gif>") text2format = replace(text2format, ":-O", "<IMG SRC=i/smiley/smileO.gif>") text2format = replace(text2format, ":-o", "<IMG SRC=i/smiley/smileO.gif>") text2format = replace(text2format, ":-0", "<IMG SRC=i/smiley/smileO.gif>") text2format = replace(text2format, ":-P", "<IMG SRC=i/smiley/smileP.gif>") text2format = replace(text2format, ":-Þ", "<IMG SRC=i/smiley/smileP.gif>") text2format = replace(text2format, ":-p", "<IMG SRC=i/smiley/smileP.gif>") End Function
Annonceindlæg tema
Cloud & AI
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
04. februar 2002 - 23:43
#1
får du nogen fejl ?
04. februar 2002 - 23:43
#2
Du skal jo gøre et eller andet med det du får tilbage fra funktionen: <%=FormatText(Request.Form("text"))%>
04. februar 2002 - 23:46
#3
Function FormatText(text2format) text2format = replace(text2format, chr(13), "<br>") text2format = replace(text2format, ":-)", "<IMG SRC=i/smiley/smiley.gif>") text2format = replace(text2format, ";-)", "<IMG SRC=i/smiley/blink.gif>") text2format = replace(text2format, ":-D", "<IMG SRC=i/smiley/smileD.gif>") text2format = replace(text2format, ":-d", "<IMG SRC=i/smiley/smileD.gif>") text2format = replace(text2format, "8-)", "<IMG SRC=i/smiley/smileB.gif>") text2format = replace(text2format, "B-)", "<IMG SRC=i/smiley/smileB.gif>") text2format = replace(text2format, "b-)", "<IMG SRC=i/smiley/smileB.gif>") text2format = replace(text2format, ":-S", "<IMG SRC=i/smiley/crooked.gif>") text2format = replace(text2format, ":-s", "<IMG SRC=i/smiley/crooked.gif>") text2format = replace(text2format, ":-|", "<IMG SRC=i/smiley/disgust.gif>") text2format = replace(text2format, ":-l", "<IMG SRC=i/smiley/disgust.gif>") text2format = replace(text2format, ":-I", "<IMG SRC=i/smiley/disgust.gif>") text2format = replace(text2format, ":-(", "<IMG SRC=i/smiley/sad.gif>") text2format = replace(text2format, ":-O", "<IMG SRC=i/smiley/smileO.gif>") text2format = replace(text2format, ":-o", "<IMG SRC=i/smiley/smileO.gif>") text2format = replace(text2format, ":-0", "<IMG SRC=i/smiley/smileO.gif>") text2format = replace(text2format, ":-P", "<IMG SRC=i/smiley/smileP.gif>") text2format = replace(text2format, ":-Þ", "<IMG SRC=i/smiley/smileP.gif>") text2format = replace(text2format, ":-p", "<IMG SRC=i/smiley/smileP.gif>") 'Dette mangler FormatText = text2format End Function
04. februar 2002 - 23:48
#4
askhoej er sørme vågen modsat os andre :)
04. februar 2002 - 23:50
#5
Jeps - men ikke særlig meget længere :-)
04. februar 2002 - 23:50
#6
lol, jeg må vist konstateres som ham der først skal i seng ;)
05. februar 2002 - 09:31
#7
Det var jo hurtigt... tak for hjælpen !
Kurser inden for grundlæggende programmering