| View previous topic :: View next topic |
| Author |
Message |
Kei Guest
|
Posted: Sat Nov 13, 2004 2:55 pm Post subject: Inserting a row into a table |
|
|
I'm just starting to write database applications, and in one case I would
like to search for files on the hard drive and insert the filename data into
a table. all fields are requird (Non-null). Here is the code:
Table1.Insert;
TWideStringField(Table1.FieldByName('filename')).Value := sName;
TWideStringField(Table1.FieldByName('path')).Value := sDir;
Table1.FieldByName('size').Value := GetFileSize(sFullName);
Table1.Post;
Everytime a runtime error saying that "path" cannot be null. But I've
assigned a value to it.. what's wrong with this code?
Thanks
Kei
|
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Sat Nov 13, 2004 3:20 pm Post subject: Re: Inserting a row into a table |
|
|
When you ask database questions you must tell us what database you are
using and which data access components you are using.
If you are using Paradox tables your problem is probably that Paradox
has no widestring support.
--
Bill (TeamB)
TeamB cannot answer questions received via email
|
|
| Back to top |
|
 |
|