convert currency values in words
i wants to convert indian currency in words i.e 199 (rupees one hundred ninety nine only) is there anybody who can tell me how to do the same
i wants to convert indian currency in words i.e 199 (rupees one hundred ninety nine only) is there anybody who can tell me how to do the same
Slight modifications: Spellings of dollars are incorrect which would cause incorrect replacement of the string. Also modified the code slightly. Please try it out and debug yourself.
form1.#subform[0].AMT_WORDS::exit - (FormCalc, client)
//RTGS_AMT::exit-(form calc,client)
var Y;
var Z;
Z = RTGS_AMT.rawValue;
AMT_WORDS.rawValue= WordNum(Z,2);
Y = AMT_WORDS.rawValue;
Y = Replace(Y,"Dollars","Rupees"); // changed spellings here.
Y = Replace(Y,"Cents","Paise");
AMT_WORDS.rawValue = Y;
// AMT_WORDS = WordNum(RTGS_AMT,Z,2); // This is not required.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.