kkmfg
Senior Member
  

Ghost of the code
Posts: 375
Gender:
|
Not to whip a dead horse into mush but.. since you did include some source code there... You do realize that if we all had the source code we could debug ourselves, right? For instance, in this case personal debugging would probably best go down this path: First, reduce the source you posted to just: msg "You have just imported " + trim(trim(str(head_cntr),'T'),'L') * " EDI SO headers, " + trim(trim(str(line_cntr),'T'),'L') * " EDI Line Items, and "+ trim(trim(str(note_cntr),'T'),'L') * " EDI Notes from "+trim(bkedi.mst.path,'T') * file_name * " Importing now complete. Proceed to view/edit in ED-C. " windows 'I' close @in_file if delf(path*'dbaso.in') = .f. msg "Error deleting "+path*'DBASO.IN' windows 'i' endif This would remove all pertinent conditional expressions from the mix thus isolating whether the deleting statement is working. If it is then the conditionals I removed could be put back one by one until the problem is found (well, they should be commented out initially and uncommented in sequence but you get the point.) If, however, it still doesn't work then investigation into why not might be served by moving the message on failure out of the if block thus making it alway happen. Then the end user can see what path + file it's trying to delete. All of this is to say, in the right hands end users having source can be a good thing. Some of us have enough experience with debugging to find the problem ourselves.
|