[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: getting text



Ian Bell wrote:
> ...
>>http://mc303.studentenweb.org/downloads/mms_gui.c
 > ...
> Code seems eminently readable to me.  Your problem stems from the fact that 
> the pointers to the text entry widgets are 'lost' in the nice tidy 
> subroutines in which you create them.  You need these to access the text.

Okay, after leaving my problem alone for a couple of hours, and getting 
back to it this evening, i solved my problem within 10 seconds by making 
those text entry widgets global (see updated code at URL above).

As I am trying to write clean and profound code, i just would like to 
ask if this is a quite often used technique for solving this kind of 
problems (i have always been taught that global vars are *bad*).  If 
not, then what is the 'clean' technique to solve my problem?

Greetzzz,
Bart

-- 
Bart Vandewoestyne		      Bart.Vandewoestyne_at_pandora.be
Hugo Verrieststraat 48			       GSM: +32 (0)478 397 697
B-8550 Zwevegem			 http://users.pandora.be/vandewoestyne
----------------------------------------------------------------------
"Any fool can know, the point is to understand." - Albert Einstein




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]