RE: DB Maintanace Help needed
Scott:
This is what I use
you might give it a try.
you might have to inclued the entire path if it is not the
A5.Get_Path() default
charlie crimmel
'Date Created: 29-May-2003 07:20:17 AM
'Last Updated: 29-May-2003 07:26:50 AM
'Created By :
'Updated By :
'DATA DICTIONARY MAINTENANCE'
OPTION STRICT
dim response as n
dim files as p
dim filename as c
response=ui_msg_box("Be Patient","This process will take a little while. Wait for the message confirming that Maintenance is completed.")
if response=2 THEN
end
end if
on error goto noproblem
'files=filefind.first(A_DB_CURRENT_PATH+"*.alb")
'files=filefind.first(A5.Get_Path()+Chr(92)+"*.alb")
files=filefind.first("members"+Chr(92)+"*.alb")
WHILE .not. files.eof()
filename=files.name()
dictionary.update(filename)
files.next()
END WHILE
'files=filefind.first(A_DB_CURRENT_PATH+"*.dbf")
files=filefind.first("members"+Chr(92)+"*.dbf")
WHILE .not. files.eof()
filename=files.name()
dictionary.update(filename)
files.next()
END WHILE
'files=filefind.first(A_DB_CURRENT_PATH+"*.set")
files=filefind.first("members"+Chr(92)+"*.set")
WHILE .not. files.eof()
filename=files.name()
dictionary.update(filename)
files.next()
END WHILE
'ui_msg_box("File Maintenance","Done!",UI_OK+UI_ATTENTION_SYMBOL)
end
noproblem:
ui_msg_box("File Maintenance","Could not update " + filename + " , file busy")
Resume next
Scott:
This is what I use
you might give it a try.
you might have to inclued the entire path if it is not the
A5.Get_Path() default
charlie crimmel
'Date Created: 29-May-2003 07:20:17 AM
'Last Updated: 29-May-2003 07:26:50 AM
'Created By :
'Updated By :
'DATA DICTIONARY MAINTENANCE'
OPTION STRICT
dim response as n
dim files as p
dim filename as c
response=ui_msg_box("Be Patient","This process will take a little while. Wait for the message confirming that Maintenance is completed.")
if response=2 THEN
end
end if
on error goto noproblem
'files=filefind.first(A_DB_CURRENT_PATH+"*.alb")
'files=filefind.first(A5.Get_Path()+Chr(92)+"*.alb")
files=filefind.first("members"+Chr(92)+"*.alb")
WHILE .not. files.eof()
filename=files.name()
dictionary.update(filename)
files.next()
END WHILE
'files=filefind.first(A_DB_CURRENT_PATH+"*.dbf")
files=filefind.first("members"+Chr(92)+"*.dbf")
WHILE .not. files.eof()
filename=files.name()
dictionary.update(filename)
files.next()
END WHILE
'files=filefind.first(A_DB_CURRENT_PATH+"*.set")
files=filefind.first("members"+Chr(92)+"*.set")
WHILE .not. files.eof()
filename=files.name()
dictionary.update(filename)
files.next()
END WHILE
'ui_msg_box("File Maintenance","Done!",UI_OK+UI_ATTENTION_SYMBOL)
end
noproblem:
ui_msg_box("File Maintenance","Could not update " + filename + " , file busy")
Resume next
Comment