Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
[foxbrasil] ConversionFunc Property (CursorAdapter)
Message
From
16/10/2003 09:09:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
[foxbrasil] ConversionFunc Property (CursorAdapter)
Miscellaneous
Thread ID:
00839215
Message ID:
00839215
Views:
120
I'd like to use a UDF in this property to convert an empty value of a date type into null value.

Thought VFP help says "use ConversionFunc to specify native Visual FoxPro or CUSTOM conversion functions...", it is not working with a simple function like this:

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
Next
Reply
Map
View

Click here to load this message in the networking platform