Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with ConversionFunc (CursorAdapter)
Message
De
21/10/2003 10:16:49
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem with ConversionFunc (CursorAdapter)
Divers
Thread ID:
00840655
Message ID:
00840655
Vues:
112
I'd like to use a UDF in this property to convert empty values of some fields into null values.

Thought VFP help says "use ConversionFunc to specify native Visual FoxPro or CUSTOM conversion functions...", it is not working.

When I call TABLEUPDATE(), VFP shows me a "enter view parameter" window. asking for a value for the call of the function... " ChangeNull(mytable.myfield) "

This is my function:

Function ChangeNull(tdData)
If tdData = {}
Return null
Else
Return tdDAta
EndIf
EndFunc


I set the CA property like this:

.ConversionFunc = "date_field ChangeNull"


"set procedure" is ok too...

What's wrong? Shouldn't it work?
Juliano Martins Terterola
Microsoft Certified Professional
Porto Alegre - RS - Brazil
9 years of Visual FoxPro experience

"Though we know that time has wings
We're the ones who have to fly..."
Neil Peart - Rush
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform