Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SP to return a cursor
Message
 
 
À
05/08/2009 16:59:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
01416077
Message ID:
01416319
Vues:
37
>>>>BTW, see answers on your formatting question here
>>>>
>>>>http://forum.lessthandot.com/viewtopic.php?f=39&t=7043
>>>>
>>>>myvalues.ToString("$#0.00")
>>>
>>>This doesn't work
>>>RetVal += "<td>" + oReader("thisyear").ToString("{0:C}") + "</td>"
>>>and neither does this
>>>RetVal += "<td>" + oReader("thisyear").ToString("$#0.00") + "</td>"
>>>
I'd be happy with just commas.
>>
>>Ok, did you make it work?
>
>No, I took the question to NET forums. Both of the above attempts raise an error about casting between string and integer. DOesn't make any sense to me cause without the format code it works fine.

What is the type of ThisYear? Did you try to convert it to decimal first?

Please re-visit the above link for a sample.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform