Howdy All!
When I run this code my app freezes. Any ideas?
Thanks
Stacy
!Do BackupData
!BackupData Routine
CurrentPath = PATH()
If FiledialogA('Select backup folder',BackupFolder,'',FILE:KeepDir+FILE:Directory+FILE:LongName)
DIRECTORY(AllFiles,'*.*',ff_:READONLY+ff_:HIDDEN)
Loop iCounter = 1 To Records(AllFiles)
Get(AllFiles,iCounter)
Copy(AllFiles.name,BackupFolder)
AppFrame{Prop:StatusText,1} = 'Copying ' & Clip(CurrentPath) & '\' & AllFiles.Name
End
MESSAGE('Application copied to the ' & Clip(BackupFolder) & ' folder.','BACKUP',ICON:Exclamation)
AppFrame{Prop:StatusText,1} = ''
End
SetPath(CurrentPath)