Sep 10, 2003 #1 lab509 MIS Sep 4, 2003 5 US Does anyone know exactly how to use these 2 functions? Thanks!!!
Sep 10, 2003 #2 synapsevampire Programmer Mar 23, 2002 20,180 US It's well documented in Help, what is your intent? Totext is equivalent to Cstr, and converts numerous data types to a string, here's an example of a numeric: Totext(1234.56,0,"" Returns 1234 The 2nd parameter states the number of decimal places, the 3rd designates the character to use as a thousands seperator. Towords is a throwback to Crystal's early days of being a check writer, and allows for numerics to be converted to words, as in: ToWords(12345.5000,0) Returns twelve thousand three hundred forty six. Note that the 2 parameter states the number of decimal places to honor. -k Upvote 0 Downvote
It's well documented in Help, what is your intent? Totext is equivalent to Cstr, and converts numerous data types to a string, here's an example of a numeric: Totext(1234.56,0,"" Returns 1234 The 2nd parameter states the number of decimal places, the 3rd designates the character to use as a thousands seperator. Towords is a throwback to Crystal's early days of being a check writer, and allows for numerics to be converted to words, as in: ToWords(12345.5000,0) Returns twelve thousand three hundred forty six. Note that the 2 parameter states the number of decimal places to honor. -k