Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null Values
Message
From
16/07/2016 07:10:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Null Values
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01638452
Message ID:
01638452
Views:
76
Sir, there is a cursor adapter named MASTER, that is on DataEnvironment.

I want to get values from cursoradapter to a cursor with this command
create CURSOR master1 (code  C(8),open_dr n(13,2),open_cr  n(13,2),desc1 c(30),;
	phone_o c(20),debit n(10,2),credit n(10,2),close_dr n(10,2),close_cr n(10,2))

select master1
append from dbf('master') for len(alltrim((code)))=7
But it shows this error message


Field CLOSE_CR does not accept null values.

(becuase close_cr has NULL value in original sqlserver table as shown in attached image)

My question is: how to get Null values as empty or zero into vfp cursors?
or someother solution to get rid of such error messages regarding Null values.
Next
Reply
Map
View

Click here to load this message in the networking platform