Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
STRTRAN() & Null as Replacement
Message
De
06/07/2010 11:09:13
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
STRTRAN() & Null as Replacement
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01471525
Message ID:
01471525
Vues:
133
Is the following a bug in STRTRAN()? It happens in VFP 7 & 9.

? ISNULL(STRTRAN('XXX', 'YYY', NULL)) && prints .T.

'YYY' doesn't appear in 'XXX', so why is it substituting NULL in the first place? If the expression sought doesn't exist in the expression to be searched, I would expect to have the expression to be searched returned as is, regardless of the replacement expression.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform