Hi,
I am trying to write a program that read files in a directory and move them to specific folders based on their extension. The files are sent over from another computer through ftp. I have a form that contain a command button and a check box. The check box is used to have it run continuously or one time only. In the click event of my dialog box I have the following code
thisform.get_filetype
do while thisform.chk_auto.value = .T.
thisform.get_filetype
enddo
The function get_filetype just uses an ADIR and moves the files. Everything is working fine but I have no way of breaking out of the loop. I was hoping I would still be able to click the chk_box and that will stop the loop. Is there a way to read window messages inside this loop ?
Thanks
I am trying to write a program that read files in a directory and move them to specific folders based on their extension. The files are sent over from another computer through ftp. I have a form that contain a command button and a check box. The check box is used to have it run continuously or one time only. In the click event of my dialog box I have the following code
thisform.get_filetype
do while thisform.chk_auto.value = .T.
thisform.get_filetype
enddo
The function get_filetype just uses an ADIR and moves the files. Everything is working fine but I have no way of breaking out of the loop. I was hoping I would still be able to click the chk_box and that will stop the loop. Is there a way to read window messages inside this loop ?
Thanks