Ask a Question related to ASP Database, Design and Development.
-
Joe Resudek #1
Classic ASP, Trouble with fields.value
running code like:
for each ofield in rs.fields
response.write ofield.value
next
Getting and error that says TYPE MISMATCH. I KNOW that value is a correct
type, right???
Using SQlserver
--
Joe Resudek
Frontier New Media
225 Crummer Lane
Reno, NV 89509
(775) 824-4040
(775) 824-4044 fax
[url]http://www.thefrontiergroup.com[/url]
Joe Resudek Guest
-
.NET COM in Classic ASP
I have created a simple .NET COM class. I have used regasm dllname.dll /tlb: dllname.tlb /codebase to register it on another server - the files... -
#26351 [Opn->Bgs]: Incorrect handling of Null Fields/Numerical Fields with '0'
ID: 26351 Updated by: iliaa@php.net Reported By: jabberwocky at ibplanet dot com -Status: Open +Status: ... -
#26351 [NEW]: Incorrect handling of Null Fields/Numerical Fields with '0'
From: jabberwocky at ibplanet dot com Operating system: Any PHP version: 4.3.4 PHP Bug Type: MSSQL related Bug description: ... -
MAC OS X NOT BETTER THAN CLASSIC!!
OK, I have been using Mac OS X since version 10.0. Now, as a Mac user for more than 13 years, a UNIX/Linux user for more than 8 years, and as IT... -
VisualAge 6 installation trouble on aix 5.2, gcc trouble too :)
I've installed gcc 3.x from UCLA site. and I got this error - In file included from test.c:23: /usr/include/pthread.h:554: error: parse error... -
John Beschler #2
Classic ASP, Trouble with fields.value
I just copied your code into and asp page on my dev box,
added the code for the connection objects and ran it. It
works fine. There must be something you've left out.
Exactly which line is failing?
value is a correct>-----Original Message-----
>running code like:
>
>for each ofield in rs.fields
> response.write ofield.value
>next
>
>Getting and error that says TYPE MISMATCH. I KNOW that>type, right???
>
>Using SQlserver
>
>--
>Joe Resudek
>Frontier New Media
>225 Crummer Lane
>Reno, NV 89509
>(775) 824-4040
>(775) 824-4044 fax
>[url]http://www.thefrontiergroup.com[/url]
>
>
>.
>John Beschler Guest
-
John Blessing #3
Re: Classic ASP, Trouble with fields.value
"Joe Resudek" <joe@thefrontiergroup.com> wrote in message
news:eAXB%23JTVDHA.3232@tk2msftngp13.phx.gbl...On the assumption they are char fields, you might have some nulls,> running code like:
>
> for each ofield in rs.fields
> response.write ofield.value
> next
>
> Getting and error that says TYPE MISMATCH. I KNOW that value is a correct
> type, right???
>
> Using SQlserver
>
> --
> Joe Resudek
> Frontier New Media
> 225 Crummer Lane
> Reno, NV 89509
> (775) 824-4040
> (775) 824-4044 fax
> [url]http://www.thefrontiergroup.com[/url]
>
>
concatenating with an empty string will sort it.
for each ofield in rs.fields
response.write "" & ofield.value
next
If they are not char fields, test for null first.
--
John Blessing
[url]http://www.LbeHelpdesk.com[/url] - Help Desk software at affordable prices
[url]http://www.free-helpdesk.com[/url] - Completely free help desk software !
[url]http://www.lbetoolbox.com[/url] - Remove Duplicates from MS Outlook
[url]http://www.lbesync.com[/url] - Synchronize two Outlook Personal Folders
John Blessing Guest
-
Joe Resudek #4
Re: Classic ASP, Trouble with fields.value
I will bet money that this is the issue, the first field is not a char
field. I'll test it and change the code, thanks.
--
Joe Resudek
Frontier New Media
225 Crummer Lane
Reno, NV 89509
(775) 824-4040
(775) 824-4044 fax
[url]http://www.thefrontiergroup.com[/url]
"John Blessing" <ntlnews@**REMOVETHIS**lbehelpdesk.com> wrote in message
news:1zeVa.3865$G85.715@newsfep4-winn.server.ntli.net...correct> "Joe Resudek" <joe@thefrontiergroup.com> wrote in message
> news:eAXB%23JTVDHA.3232@tk2msftngp13.phx.gbl...> > running code like:
> >
> > for each ofield in rs.fields
> > response.write ofield.value
> > next
> >
> > Getting and error that says TYPE MISMATCH. I KNOW that value is a>> > type, right???
> >
> > Using SQlserver
> >
> > --
> > Joe Resudek
> > Frontier New Media
> > 225 Crummer Lane
> > Reno, NV 89509
> > (775) 824-4040
> > (775) 824-4044 fax
> > [url]http://www.thefrontiergroup.com[/url]
> >
> >
> On the assumption they are char fields, you might have some nulls,
> concatenating with an empty string will sort it.
>
>
> for each ofield in rs.fields
> response.write "" & ofield.value
> next
>
> If they are not char fields, test for null first.
>
>
>
> --
> John Blessing
> [url]http://www.LbeHelpdesk.com[/url] - Help Desk software at affordable prices
> [url]http://www.free-helpdesk.com[/url] - Completely free help desk software !
> [url]http://www.lbetoolbox.com[/url] - Remove Duplicates from MS Outlook
> [url]http://www.lbesync.com[/url] - Synchronize two Outlook Personal Folders
>
Joe Resudek Guest
-
Manohar Kamath [MVP] #5
Re: Classic ASP, Trouble with fields.value
Try this:
response.write ofield.value & vbNullString
I am guessing some fields have Null values.
--
Manohar Kamath
Editor, .netBooks
[url]www.dotnetbooks.com[/url]
"Joe Resudek" <joe@thefrontiergroup.com> wrote in message
news:eAXB%23JTVDHA.3232@tk2msftngp13.phx.gbl...> running code like:
>
> for each ofield in rs.fields
> response.write ofield.value
> next
>
> Getting and error that says TYPE MISMATCH. I KNOW that value is a correct
> type, right???
>
> Using SQlserver
>
> --
> Joe Resudek
> Frontier New Media
> 225 Crummer Lane
> Reno, NV 89509
> (775) 824-4040
> (775) 824-4044 fax
> [url]http://www.thefrontiergroup.com[/url]
>
>
Manohar Kamath [MVP] Guest



Reply With Quote

