Keeping Track of Windows
Posted in 1994
Hello! Some comments on your problem outlined below: -> The problem is I call this from many different windows and I need to -> know from which window or function the call was made so I can return -> to the correct window. Four or five windows are open on the screen at -> once and I need a method of deciding which window to make current -> after displaying the status message. How about: main open window w_1 at ... open window w_2 at ... open window w_problem at ... call window_1() call window_2() end main function problem_window() current window is w_problem -- do your thing here ... end function function window_1() current window is w_1 call problem_window() current window is w_1 Aend function function window_2() current window is w_2 call problem_window() current window is w_2 end function I guess the thrust of my approach is don't try to let problem_window() figure it out. If I've missed the point of your problem, chuck some code and a more rigorous definition of the problem at me and I'll be glad to help. Good luck! Billy Wheeler (PS I've only just joined the net myself, so if you've already had bags of advice, just ignore me! :-)) ---- Digitec Online - 20 Nodes....* Johannesburg, South Africa +27-11-476-2008 .............................* Best BBS * RsaNET User Choice Awards 1993 first.last@digitec.co.za.....* Best Sysop * RsaNET User Choice Awards 1993