🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #343

CreateDataSet - doesn't create the file (D7)

#343
From: Michal Borsuk
Date: Wed, 13 Aug 2003 06:59
29 lines
2073 bytes
Hello. 

I have this problem with ClientDataSet in Delphi 7. I want the program
to create the file (cds.FileName), but it fails. Here's the line


 if not FileExists (cds.FileName) then  cds.CreateDataSet;

I got this from Marco Cantu's book: 
" you can physically create the file for the table with
the Create DataSet command on the ClientDataSet component's shortcut
menu in the Delphi IDE or by calling its CreateDataSet method at run
time." 

But there are problems with saving the file from menu -> right-click and
this command:
"Save to mybase binary file" 
"Save to MyBase XML file"

Neither saves the FieldsDefs properly when updated. 

I heard that D7 is generally quite buggy... should I switch to D6? 


Regards, 

-- 
Michal Borsuk
www.sitefinder.pl
Technical Details
Message-ID: <3F39E1C0.75180348@SiteFinder.pl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed.hanau.net!news-fra1.dfn.de!news.man.poznan.pl!topaz.icpnet.pl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f973d,6ba568c19f0b57d9,start
X-Google-Attributes: gidf973d,public
X-Google-Thread: 10baee,6ba568c19f0b57d9,start
X-Google-Attributes: gid10baee,public
X-Google-Thread: f8e31,6ba568c19f0b57d9,start
X-Google-Attributes: gidf8e31,public
X-Google-ArrivalTime: 2003-08-12 23:57:50 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed.hanau.net!news-fra1.dfn.de!news.man.poznan.pl!topaz.icpnet.pl!not-for-mail
From: Michal Borsuk <MichalBorsuk@SiteFinder.pl>
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.students,alt.lang.delphi
Subject: CreateDataSet - doesn't create the file (D7)
Date: Wed, 13 Aug 2003 08:59:12 +0200
Organization: SiteFinder - find logins and passwords to FTP's
Lines: 30
Message-ID: <3F39E1C0.75180348@SiteFinder.pl>
NNTP-Posting-Host: c24-228.icpnet.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit
X-Trace: topaz.icpnet.pl 1060757869 27997 62.21.24.228 (13 Aug 2003 06:57:49 GMT)
X-Complaints-To: chris@icpnet.pl
NNTP-Posting-Date: Wed, 13 Aug 2003 06:57:49 +0000 (UTC)
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pl,fr