Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRANSFORM bug ?
Message
De
17/07/2000 13:34:12
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00393170
Message ID:
00393403
Vues:
24
>>I just had this discussion the other day with someone. I posted some code where I used ALLTRIM(STR()), and someone pointed out to use TRANSFORM() instead. Since I've never really used TRANSFORM() before, I thought I would see if there were any issues with it on Microsoft's Knowledge Base. I found the article that George Tasker mentioned, so I decided to stick with ALLTRIM(STR()).
>
>The only problem with using ALLTRIM(STR()) is that if the size and number of decimal places isn't indicated, you only get the integer portion of the number (?ALLTRIM(STR(9.2)) && returns 9).

Another issue is the use of AllTrim() (regardless of what they trim) as a part of an index expression. The length of that expression is anywhere between zero and the maximum length of the untrimmed expression, and largely depends on the contents of the table. Using SQLs with trimmed fields may also render them UNION incompatible, even though the Selects in both parts of the union are identical.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform