Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle "numbers" act like strings

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I orginally developed an ASP web app against an Access database.
In useing sql queries to retrive data, I was setting some variable equal to the returned record values.
something like...
fldTotals = GetValue(rs, "fldTotals")

then, to display as currencty I was use following..
fldtotals= formatcurrency(fldfldtotals,0)

Well all went well until I moved my ASP to work against
Oracle73 tables instead...

Now, I get an error with the formatcurrency function.
And, it seems that ASP interpet the fldTotals variable as
a string instead of a number.
I have been able to work around this by adding...
fldtotals= cstr(fldfldtotals)
before
fldtotals= formatcurrency(fldfldtotals,0)

However, it would be much,much better if the "fldTotal" was
interpeted as a number not as a string without having to use
cstr() function.

I have tried "oracle73" and "MicroSoft ODBC for Oracle" drivers and get same results..

Would appreaciate any suggestions,,comments,actions to take...

TIA,

Ken Hardwick
Norman,OK







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top