Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accept .null. values
Message
 
 
To
01/04/2019 16:06:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667817
Message ID:
01667818
Views:
49
>Hi,
>
>I am creating my cursor as follows
>
>TEXT TO m.lcSQL NOSHOW TEXTMERGE PRETEXT 1+2+4+8
>SELECT Iban, ID 
>FROM rekeningen WHERE ALLTRIM(Iban)<> '<<m.lcAccount>>' 
>INTO CURSOR curAccounts NOFILTER READWRITE
>ENDTEXT
>
>I would like to have field Iban to accept .null. values, how to change the cursor creation?
>
>Regards,
>
>Koen

Check out CAST() operator in VFP help - it should allow to create nullable column.

E.g.
>TEXT TO m.lcSQL NOSHOW TEXTMERGE PRETEXT 1+2+4+8
>SELECT cast(Iban as C(100) NULL) as iBan, ID 
>FROM rekeningen WHERE ALLTRIM(Iban)<> '<<m.lcAccount>>' 
>INTO CURSOR curAccounts NOFILTER READWRITE
>ENDTEXT
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform