Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 November 1st, 2004, 10:08 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default values coming from database

When I used this code:
dateFrom =rtrim(ltrim(cstr(convNull(objHistoryRate("decHour lyRate"))))). The values in the database were 50 and used to give 50 in asp. Know when I try to change the code to
dateFrom=cstr(convNull(objHistoryRate("decHourlyRa te"))). The values in the database changed to Null and in txtboxes in an asp showed up no values. When I try to rewrite the code back to the original one
dateFrom=rtrim(ltrim(cstr(convNull(objHistoryRate( "decHourlyRate")))))
gives a run time error. Please explain the reason


 
Old November 1st, 2004, 04:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Shoakat,

That is because, you already have NULL in the table, on which you are trying to do the trimming job, which doesn't make sense.

It better that you try and explain us what you are trying to achieve so that we would help you get there, than posting the code and asking us the reason for its behaviour.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i monitor the calls coming in my house? iceman90289 C# 2005 2 March 29th, 2008 12:03 AM
data type not coming nishab345 VB How-To 3 June 6th, 2007 03:31 AM
msgbox is not coming ractim General .NET 2 September 2nd, 2004 02:10 AM
.NET XPath query not coming out right perropicante C# 0 June 15th, 2003 10:53 AM





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