03. september 2001 - 08:49Der er
7 kommentarer og 1 løsning
amount in kroner
Hi There :) I am trying to create a little shopping system and it seems to be going ok except that I am tring to get my amount shown to be shown in kroner for example If I have the following number 55150,50 I would like it to be shown like this 55.150,50
I have a funchion that i use that can insert a comma like this 55150,50 but of course this is not optimal Does any body Have and ideas ? Thanks Guzzie
hey guys nordclc/ I cant seem to get it to work :(
hi eagleeye this works fine <%= FormatCurrency(55150.50,2) %> however my amount uses commas and not dots this this <%= FormatCurrency(55150,50,2) %> then i get an error I have a function to replace commas like this FUNCTION fixComma( theString) fixComma = Replace( theString, \",\", \".\" ) END FUNCTION
but I dont know if this uses to many resouces ? or if its ok to use for example: change the amounts commas to dot then use FormatCurrency ? Guzzie
ok I will do it like that convert first then use FormatCurrency after :) thanks Guzzie
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.