|
Post by Stefan on Dec 17, 2004 4:31:14 GMT -5
Hi!
When i try to fil in the ZipComment property I get an EAccessViolation. I use the following code:
zipper.ZipName := filenameEdit.Text; zipper.ZipComment := trim(CommentEdit.Text); zipDM.zipper.Password := trim(PasswordEdit1.Text);
Entering the Name an the Password works fine. What do I wrong?
Thanks Stefan
|
|
|
Post by Kevin on Dec 17, 2004 17:14:46 GMT -5
I don't know, I am testing this right now and I am not getting any kind of error, it is working just fine.
Are you getting the error on the statement that is setting the zipcomment, or when you call zip?
Kevin
|
|
|
Post by cobian on Dec 21, 2004 7:28:40 GMT -5
Hello
Never assign an empty string to the comment because this causes a violation like I reported somewhere on another thread. Use
if trim (CommentEdit.Text)<>'' then zipper.ZipComment := trim(CommentEdit.Text);
|
|