Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crashing after entering in default Password
Message
De
10/06/2004 12:49:52
Anthony Testi
Fabtrol Systems Inc.
Eugene, Oregon, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00911935
Message ID:
00912309
Vues:
10
Thanks

I can see why the code change is needed but the replacement code has an ‘issue’ in it, that is the lcRetVal is not set to Local. Really there is no need for a return variable at all. Here is the solution that I recommend:
FUNCTION CharValue( tuExpression )
RETURN IIF( VARTYPE( tuexpression ) == [O], ;
            [],;
            TRANSFORM( tuExpression, [] ) )
Here is the test code that I used:
clear
? CharValue( [A] ) + [Text]
? CharValue( 123.57 )+ [Text]
? CharValue( DATE( ) )+ [Text]
oForm = NEWOBJECT( [Form] )
? CharValue( oForm )+ [Text]
? CharValue( .Null. )+ [Text]
I am about follow the other instructions you gave, thanks for the info, and I will keep you informed on my progress.

Anthony
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform