Should be
<%
phonNum=FP_FieldVal(fp_rs,"tel")
If len(phonNum)>0 then
phonNum=replace(phonNum," ","")
Else
phonNum="None"
End If
response.write(phonNum)
%>
--
| Can you help me with the syntax to do this as I can't get it working...
|
| <%
| phonNum=FP_FieldVal(fp_rs,"tel")
|
| replace(phonNum," ","")
|
| response.write(phonNum)
|
| %>
|
| Thanks
| M
|
|
|
| | > Use code to remove the spaces from the mobile pages, and leave as is for
| > non-mobile pages.
| >
| > In classic asp (must be adapted to the script language you are using):
| >
| > 'get telephone from database and store in variable phoneNumber
| > 'set mobilePage = true if page is for a mobile, otherwise set to false
| > if mobilePage then
| > replace(phoneNumber, " ", "")
| > end if
| > response.write(phoneNumber)
| >
| >
| > --
| > Ron Symonds
| > Microsoft MVP (Expression Web)
| >
http://www.rxs-enterprises.org/fp
| >
| > Reply only to group - emails will be deleted unread.
| >
| >
| >
| > | >> I have phone numbers stored in a db as xxxxx xxxxxx however I am starting
| >> to set up a mobile/pda site and the numbers need to be xxxxxxxxxxx (no
| >> spaces)
| >>
| >> I can edit the db to remove the spaces BUT would like then to display on
| >> the fp site with a space. Anyone know a simple solution???
| >>
| >> Thanks
| >> M
| >>
|
|