Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accept .null. values
Message
 
 
À
01/04/2019 16:06:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667817
Message ID:
01667818
Vues:
51
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform