Hi Borislav
>>IF DoForm("afrmMoverCursorVert", "CA1 OIO Numbers", "crstCA1", 1)
Thanks a lot for your viewpoint of my function. After reading your response I feel that I have not provided enough details from my side. Firstly, the mover class is pretty generic, it will take a cursor crstCA1 in this case, it will allow max no. of records that can be selected, if specified, 1 in this case. I could have omitted the last parameter (1) and I would have been able to select as many records from the cursor as I would like, if I would have specified 3, max 3 records could have been selected.
DoForm is a generic function existing in CodeBook, my framework, will instantiate the given class name, afrmMoverCursorVert in this case, show it and if a uRetVal property is defined in the given class then it will return just this one value.
Like I mentioned this is a simple example, but the curAvailable and curSelected can be extensively used once the mover has been closed and the class object released. That in itself is the logical problem the class has been closed so there is no garbage collection, as in the destroy of the mover I cannot close these 2 cursors.
Hope I have made the picture from my side more clearer. I have looked at your code and it is great when the mover is returning one fixed value, I could store this one value in uRetVal and DoForm() does just what you have suggested.
Thanks for your response.