Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xceed Zip Compression library
Message
 
To
04/12/1999 18:36:50
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00221989
Message ID:
00298993
Views:
28
>>>
>>>I was impressed by XCeed's backup utility (article in Dec. FP Advisor), but I can't get it to work on a form. Does anyone have working VFP method code to put behind a Backup button for this control? I can get the .prg coded example to work, but can't get the backup method to work on a form.
>>
>>The article says that in a form you should use
>>
>>loBackup.Backup(loBackup.Object)
>>
>>I assume it doesn't work this way, right?
>
>Hi Nick,
>I have this in the form init:
>public lobackup,fileselection,backupjob
>fileSelection=CREATEOBJECT("Xceedsoftware.xceedbackup.fileSelection.1")
>Backupjob=CREATEOBJECT("xceedsoftware.xceedbackup.backupjob.1")
>lobackup=CREATEOBJECT("xceedsoftware.xceedbackup.1")
>
>fileSelection.filestoprocess="C:\*.txt"
>fileSelection.filestoexclude="*.BAK"
>backupjob.selection=fileSelection
>backupjob.backupfolder="C:\test\"
>backupjob.BackupSetName="Testbackup"
>
>The backup button click code is:
> lobackup.backup(lobackup.object)
>
>which is what the article shows.
>
>Clicking backup btn throws the error:
> OLE error code 0x.... unknown name
>
>Nothing I've tried works... Could you tell me what I'm missing here?

I downloaded and tried it too, but with no success. It gives that error message with

lobackup.backup(lobackup.object)

and no error message with

lobackup.backup(lobackup)

but doesn't seem to do anything, however all properties which were set in code are there.

Hmmm...
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform