Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to California  
Web Server Talk Web Server Talk > Free Databases support forum > dBASE > Getting Started > Set Autonullfields Off ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

leander is offline     Set Autonullfields Off ?  
leander


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for leander Click here to Send leander a Private Message Find more posts by leander Add leander to your buddy list
 
03-21-06 05:00 PM

I am appending to level 7 table using dbase plus demo. I dont want to make a
ny difference between empty and null fields. I tried using SET AUTONULLFIELD
S OFF, however this did noting , and null fields still remained after append
ing or adding rows. Could someone help me pls ...10q




[ Post a follow-up to this message ]



    Re: Set Autonullfields Off ?  
Ken Mayer [dBVIPS]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-06 04:35 PM

leander wrote:
> I am appending to level 7 table using dbase plus demo. I dont want to
> make any difference between empty and null fields. I tried using SET
> AUTONULLFIELDS OFF, however this did noting , and null fields still
> remained after appending or adding rows. Could someone help me pls
> ..10q

You need to show us the code you're using ...

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase





[ Post a follow-up to this message ]



    Re: Set Autonullfields Off ?  
Roland Wingerter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-06 04:35 PM

Ken Mayer [dBVIPS] wrote
>
> You need to show us the code you're using ...
------
Hi Ken,

try the code below...

Roland


// Test: Bug with SET AUTONULLFIELDS?
clear
cAutonull = set("autonullfields")

SET AUTONULLFIELDS OFF

set database to; close tables
if _app.databases[1].tableExists("autonulltest")
_app.databases[1].dropTable("autonulltest")
endif

create table autonulltest (ID char(3), Name char(10))

insert into autonulltest (ID) values ('001')
insert into autonulltest (ID) values ('002')

use autonulltest excl
copy to autonulltest deli
set safety off
zap
set safety on

? "AUTONULLFIELDS is", set("autonullfields")
append from autonulltest deli

go top
if name = NULL
? "Bug: Table contains NULL value"
else
? "OK"
endif

close tables

SET AUTONULLFIELDS &cAutonull











[ Post a follow-up to this message ]



    Re: Set Autonullfields Off ?  
Ken Mayer [dBVIPS]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-06 04:35 PM

Roland Wingerter wrote:
> Ken Mayer [dBVIPS] wrote
> 
>
> ------
> Hi Ken,
>
> try the code below...

I have the impression this may have been reported as a bug previously.
If not, wanna post it? <g>

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase





[ Post a follow-up to this message ]



    Re: Set Autonullfields Off ?  
Roland Wingerter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-06 04:35 PM

Ken Mayer [dBVIPS] wrote
>
> I have the impression this may have been reported as a bug previously. If
> not, wanna post it? <g>
-------
I have posted it, just in case...

Thanks

Roland







[ Post a follow-up to this message ]



    Re: Set Autonullfields Off ?  
Roland Wingerter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-06 04:35 PM

"leander" wrote
>
> I am appending to level 7 table using dbase plus demo. I dont want to
> make any difference between empty and null fields. I tried using SET
> AUTONULLFIELDS OFF, however this did noting , and null fields still
> remained after appending or adding rows.
------
I reported this as a bug. Till it gets fixed you have several options:
- check out KILLNULL.EXE at http://www.dbase-tools.de/ (in German)
- write your own code
- live with NULLS

Roland







[ Post a follow-up to this message ]



    Re: Set Autonullfields Off ?  
Roland Wingerter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-06 04:35 PM

Roland W. schrieb
> Till it gets fixed you have several options:
------
You could also change the table level in the BDE to level 5. Level 5 has no
nulls but also lacks Autoincrement fields and some other features.

Roland







[ Post a follow-up to this message ]



    Re: Set Autonullfields Off ?  
dlit


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-27-06 06:16 PM

Hi Roland
What does exactly KILLNULL.EXE ? Is it a patch that will automatically act o
n dbase tables level 7 or on db+ itlself ? Or what else ?
Dom

Roland Wingerter Wrote:

> "leander" wrote 
> ------
> I reported this as a bug. Till it gets fixed you have several options:
> - check out KILLNULL.EXE at http://www.dbase-tools.de/ (in German)
> - write your own code
> - live with NULLS
>
> Roland
>
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:55 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register