|
The line public Component(int n){var = n;} is not ok for an abstract class - it contains a public constructor.
For accessing var in d2, use d2.var .
|
|
|
|
|
Hi all,
I'm going to make a dbf file using c#.net , in my case I need to make a dbf file which could be stored on floppy and moved to insurance company , and of course it must be formatted in standard details that informed by the company, and the problem is ....
How to make dbf file in c#? of course for free! I searched google but there is no related result
Thank You
|
|
|
|
|
Make Empty dbf file , and store it in your application resource , or application location
Then fill it with data "Using OleDB" , and copy it to floppy
HINT Code :
OleDbConnection ccc = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filepath.Substring(0, filepath.LastIndexOf("\\")) + ";Extended Properties=dBASE IV;");
ccc.Open();
OleDbCommand cmd1 = new OleDbCommand("Select * From " + filepath + "smsout.dbf", ccc);
OleDbDataReader dr1 = cmd1.ExecuteReader();
if (dr1.HasRows)
{
DataTable dt1 = new DataTable();
dt1.Load(dr1);
}
ccc.Close();
BTW:
Is floppy still in use ?
I know nothing , I know nothing ...
|
|
|
|
|
mersad00 wrote: could be stored on floppy
Your about five years too late.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
But I thought dbfs could only be stored on floppy.
|
|
|
|
|
As far as I can see it's not dependent on storage medium. But I meant that I haven't seen a floppy in years. Useless to have a file no one can use.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: to have a file no one can use
I think that's his goal.
|
|
|
|
|
Success by failure
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
in my country floppy is the only medium for some old companies,like insurances and banks
another question? How to make empty dbf files????????
|
|
|
|
|
That's pretty modern. Here in Germany some companies'/authorities' IT departments prevent the introduction of digital dictation and speech recognition by insisting that that must be done without computers, like dictation on tapes. Maybe they fear their backup of the files become to heavy, several tons of punch cards...
|
|
|
|
|
"How to make an empty DBF" ? ...
Get one with data in it and ZAP it ...
|
|
|
|
|
I´m sure the youngsters don´t even know the zap statement
|
|
|
|
|
I don´t believe you .... google finds a lot of things about dbf´s.
And if you search codeproject with the keyword "dbf", you will find an helpful article/project by pascal ganaye
|
|
|
|
|
all you're doing a project: QuickSpark Game C #, use winform .. but do not, who do their own risk can send all files for future reference. Thank. Mail: no.touch@yahoo.com.vn
|
|
|
|
|
Don't post your email to any forum - unless you really like spam. If anyone responds to you, you will get an email (like this one).
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
Help,I have tried to do three days do not risk that. I had no new requests for help. I live in Vietnam
|
|
|
|
|
Why not try and do it yourself? That way, your tutor will not get thirty identical copies of the same code and fail all your asses...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
chiprom wrote: all you're doing a project: QuickSpark Game C #, use winform
Are you asking a question or giving assignments to us? If assignments then we are not here for that!
chiprom wrote: but do not, who do their own risk can
Sounds like you need help. If so, asking for code without putting/showing effort is not encouraged here. Try first and then post specific issue if you have.
chiprom wrote: Mail: no.touch AT yahoo.com.vn
Don't post your emailid like this. They will just attract spam.
|
|
|
|
|
I am using xtraGrid from DevExpress which doesn't support Resource images for its EmbeddedNavigator buttons. It only support ImageCOllection and ImageIndex. I am asking if there is any way to create the ImageList on Form_Load from the Resources and populate all images and attach the image to the EmbeddedButton but referring to it using the name like _newicon or _editicon?
|
|
|
|
|
Hi ,
- How to Add Image to your project resource :
Click, Project -> Project Properties -> Resources -> Add resource -> Add existing file ( Browse for your image ( JPG , JPEG , PNG ... etc ) ... ( I added for example Desert.jpg , Hydrangeas.jpg )
- How to add Image from resource to image list :
ImageList imglst = new ImageList();
imglst.Images.Add(global::WindowsFormsApplication2.Properties.Resources.Desert);
imglst.Images.Add(global::WindowsFormsApplication2.Properties.Resources.Hydrangeas);
Hope this help
I know nothing , I know nothing ...
|
|
|
|
|
hi guys
how to record video from monitor ?
Thanks a lot
|
|
|
|
|
|
|
While I agree that that probably does what the poster wants, I don't think it does what he asked.
|
|
|
|
|
People seldom want what they ask, ask your computer.
|
|
|
|