My users have different ways to accomplish things. Some like to "drag and drop" while others like to "explore". I have a form with a control where they can drop a file to be operated on. I've also put a command button on the form that allows them to navigate to the file using the GETFILE() function.
I'd like to find a way to programatically 'drop' the file from the GETFILE function onto the control that is set to accept Drag and Drop.
I tried the following line in the click event of my command button, but it reported that "ODATAOBJECT is not an object."
thisform.container2.OLEDragDrop(gcInputFile, 7, 1, 0, 105, 44)
I got the parameters (7, 1, 0, 105, 44) from the debugger with a real file that was dropped and figured if I used them along with the name of the file that it would work. So how do I make the value of gcInputFile into an object that OLEDragDrop will recognize?
Steve
I'd like to find a way to programatically 'drop' the file from the GETFILE function onto the control that is set to accept Drag and Drop.
I tried the following line in the click event of my command button, but it reported that "ODATAOBJECT is not an object."
thisform.container2.OLEDragDrop(gcInputFile, 7, 1, 0, 105, 44)
I got the parameters (7, 1, 0, 105, 44) from the debugger with a real file that was dropped and figured if I used them along with the name of the file that it would work. So how do I make the value of gcInputFile into an object that OLEDragDrop will recognize?
Steve