>>>
>>>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