NToM Function |
Namespace: XSharp.VFP
FUNCTION NToM( nExpression AS FLOAT ) AS CURRENCY
public static Currency NToM( Float nExpression )
1STORE 24.95 TO gnNumeric // Creates a numeric type memory variable 2CLEAR 3? "gnNumeric is type: " 4?? Type('gnNumeric') // Displays N, numeric type value 5gnNumeric= NToM(gnNumeric) // Converts gnNumeric to a currency value 6? "gnNumeric is now type: " 7?? Type('gnNumeric') // Displays Y, currency type value