Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SP to return a cursor
Message
From
05/08/2009 18:06:14
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
01416077
Message ID:
01416352
Views:
50
>>Interesting, this
>>
>>Dim myval As Decimal = oReader("priorpmt")
>>Response.Write(myval.ToString("$ #0,0.00"))
>>
>>will work, but
>>
>>Response.Write(oReader("priorpmt").ToString("$ #0,0.00"))
>>
>>will not. So it looks like the reader is presenting a string and not a number.
>
>As far as I know, oReader returns an Object. May be that's why the extra variable is important. Can you try oReader("myField").Value.ToString... ?
Response.Write(oReader("priorpmt").GetType)    ' Reports that is is indeed a Decimal

RetVal += "<td>" + oReader("priorpmt").value.ToString("$ #0,0.00") + "</td>"    ' Reports an error that says Value is not a member of decimal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform