General information
Category:
Third party products
>>>>
>>>>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...
Thanks for testing it out, Nick. If Andrew Ross MacNeill is reading this, maybe he'll offer us some hope (Andrew authored the FPA article) and some answers.
For the time being, I'll put this one away with my other unfinished projects <g>. Thanks again.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only