Information générale
Catégorie:
Conférences & événements
>>The quiz in the UT KB has a few questionable answers, like:
>>
>>What does the TRANSFORM() function do?
>>
>>Converts any variable type expression to any other variable type.
>>Converts any variable type expression to a character type.
>>Converts a character type expression to any other variable type.
>>Formats character or numeric expressions using PICTURE and FUNCTION codes.
>>Strips the PICTURE and FUNCTION (2.x) or Format and InputMask (VFP) codes from a formatted character expression.
>>
>>Also, there were a few that referred to VFP5 as though it did not apply to VFP6, but I am sure that it was meant to differentiate it from VFP3.
>>
>>So who do I tell?
>
>Discuss them here is fine. If there is agreement that there is a problem, we will get it corrected.
As the one who originally submitted that question 2 years ago, I'm curious: What did I get wrong on it? From what I know about FoxPro, the correct answer would be D, "Formats character or numeric expressions using PICTURE and FUNCTION codes." As an example, run the following code:
lnVar = 12345.6789
? TRANSFORM("$$$,$$$.99")
Your result will be $12,345.68
The original question was written before VFP 6 came out, but I just tested it using VFP 6, and it still works fine.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement