drag & drop issue
Posted: Thu Mar 21, 2013 7:00 pm
I have set up a simple testbed to achieve the following.
There are two basic text fields, Comment and Path.
Comment is editable, Path is not (locked text).
I want to drag a file from explorer into the comment field
upon dropping, I want the Comment field contents copied into the Path Field.
Then the comment field is emptied.
The code to do that (I thought) would be:-
according to the dictionary.
The problem is, file path does not show in either field. They are both blank and the insertion point blinks in the Comment field.
If the code is removed, the drag and drop puts the file path correctly into the Comment field, but obviously, nothing else happens.
Where have I gone wrong?
There are two basic text fields, Comment and Path.
Comment is editable, Path is not (locked text).
I want to drag a file from explorer into the comment field
upon dropping, I want the Comment field contents copied into the Path Field.
Then the comment field is emptied.
The code to do that (I thought) would be:-
Code: Select all
on dragDrop
put field "Comment" into field "Path"
put empty into field "Comment"
pass dragdrop
end dragDrop
The problem is, file path does not show in either field. They are both blank and the insertion point blinks in the Comment field.
If the code is removed, the drag and drop puts the file path correctly into the Comment field, but obviously, nothing else happens.
Where have I gone wrong?