Hi every one.
Am using OnFormDropFile procedure to load the lines of the dropped file in DBMemo1, and have, there:
DBmemo1.Lines.Insert(0, FileNames);{gets filename of FIRST file of dropped files}
I have the above working OK. However, I would like to have instead of DBMemo1, a variable-name, such that if I have two or more Memo boxes, the procedure would work with any of the Memo boxes.
I have tried some tricks with code, but just can't seem to be able to achieve that.
How to do it?
Thanks!
P.S.:
I have been thinking that perhaps the AllowDropFiles ought to belong to the individual components, and also the procedure OnDropFiles, rather than being only so in the Form.