LucieLastic
Programmer
hi All
I've noticed in the past that some programmers (I've worked with) use a global VAR in the Implementation part of the unit. I never do this, and always use my Private, public parts etc and properties where appropriate.
What's the advantage of using this global Var and is it better, or worse than using the unit's sections. Or..is it for units that contain more than 1 class which share the same variable? I never have this as I tend to keep different classes to different units - not sure if this is good but my own preference really.
Just a thought I'd be mulling over.
lou
I've noticed in the past that some programmers (I've worked with) use a global VAR in the Implementation part of the unit. I never do this, and always use my Private, public parts etc and properties where appropriate.
What's the advantage of using this global Var and is it better, or worse than using the unit's sections. Or..is it for units that contain more than 1 class which share the same variable? I never have this as I tend to keep different classes to different units - not sure if this is good but my own preference really.
Just a thought I'd be mulling over.
lou