Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2004, 03:46 PM
Authorized User
 
Join Date: Jan 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default Boolean

<td class="Griddato" align="center"><%=rsLPProv.Fields("ProPs_BaseSiNo" )%></td>

ProPs_BaseSiNo is a boolean value in the database table. On the ASP page it returns True or False, how can I convert this if it is true or false it returns Yes or No to the user screen?

 
Old January 19th, 2004, 04:14 PM
Authorized User
 
Join Date: Dec 2003
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dim displayPro
displayPro=<%=rsLPProv.Fields("ProPs_BaseSiNO")%>

<%
If displayPro=True then
displayPro="Yes"
else
displayPro="No"
End If
%>
Then insert displayPro into the appropriate column of the table

Let me know if this helps

John

 
Old January 20th, 2004, 12:24 PM
Authorized User
 
Join Date: Jan 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Worked out like a charm!






Similar Threads
Thread Thread Starter Forum Replies Last Post
The boolean data type in C++? code_lover C++ Programming 2 July 14th, 2008 01:11 AM
help me with boolean array Un33k Pro Visual Basic 2005 1 June 12th, 2007 11:43 AM
Save Checkbox with boolean 0/1 value rdove84 ASP.NET 1.0 and 1.1 Basics 5 October 24th, 2006 09:12 AM
boolean starlightt Java Basics 2 April 6th, 2006 05:34 PM
Convert variable to boolean stephanel Javascript How-To 2 June 25th, 2003 08:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.