Re: Declaring variable as "Empty" ???

2018-01-30 Thread mbsoftwaresolutions
On 2018-01-30 18:02, Fernando D. Bozzo wrote: A small error writing by heart, but EMPTY class has no AddProperty() method, so really is: AddProperty( loReg, "name", value) ... I've always just used ADDPROPERTY(object, field, value)...I've never used the .AddProperty of any legitimate object.

Re: Declaring variable as "Empty" ???

2018-01-30 Thread Gene Wirchenko
At 12:00 2018-01-30, Stephen Russell wrote: Still trying to think of why you would use it. Likewise. If I want a data object, I usually also want methods. I subclass custom so I can have this. At the very least, I want the object initialised so I want .init(). Having to initial

Re: Declaring variable as "Empty" ???

2018-01-30 Thread Fernando D. Bozzo
to a >> different method which then uses all of the properties to the final >> processing. Not sure whether this is good programming style or not, but it >> worked like I wanted and I think I'll be using something like this again >> in >> the near future. Then I saw

Re: Declaring variable as "Empty" ???

2018-01-30 Thread Fernando D. Bozzo
r not, but it > worked like I wanted and I think I'll be using something like this again in > the near future. Then I saw the CreateObject('Empty') command mentioned on > this thread. > > Wouldn't that accomplish the same thing I did via NewObject with a > pr

RE: Declaring variable as "Empty" ???

2018-01-30 Thread Paul H. Tarver
! Paul -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Frank Cazabon Sent: Tuesday, January 30, 2018 2:13 PM To: profoxt...@leafe.com Subject: Re: Declaring variable as "Empty" ??? I've seen it used as a lightweight class. http://f

Re: Declaring variable as "Empty" ???

2018-01-30 Thread Ted Roche
On Tue, Jan 30, 2018 at 1:50 PM, wrote: > Never saw anyone declare a variable AS "Empty" before? Declaring a variable AS a type has no programmatic effects, but it does make Intellisense(R), based on the class definition, work for the object. -- Ted Roche Ted Roche & Associates, LLC http://www

Re: Declaring variable as "Empty" ???

2018-01-30 Thread mbsoftwaresolutions
On 2018-01-30 15:12, Frank Cazabon wrote: I've seen it used as a lightweight class. http://fox.wikis.com/wc.dll?Wiki~EmptyClass Oh I've often used the Empty class as well; very useful. Just curious why the declaration was as such. Penchant for correctness I guess. ___

Re: Declaring variable as "Empty" ???

2018-01-30 Thread Frank Cazabon
I've seen it used as a lightweight class. http://fox.wikis.com/wc.dll?Wiki~EmptyClass On 30 January 2018 14:50:57 GMT-04:00, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: >Saw this today while looking for other stuff: >https://www.screencast.com/t/PyvZvy53oZFu > >Never saw anyone declare

Re: Declaring variable as "Empty" ???

2018-01-30 Thread Stephen Russell
Still trying to think of why you would use it. On Tue, Jan 30, 2018 at 12:50 PM, < mbsoftwaresoluti...@mbsoftwaresolutions.com> wrote: > Saw this today while looking for other stuff: > https://www.screencast.com/t/PyvZvy53oZFu > > Never saw anyone declare a variable AS "Empty" before? I guess th

Declaring variable as "Empty" ???

2018-01-30 Thread mbsoftwaresolutions
Saw this today while looking for other stuff: https://www.screencast.com/t/PyvZvy53oZFu Never saw anyone declare a variable AS "Empty" before? I guess that's basically this: loMenuItem = CREATEOBJECT("Empty") (although you'd still have to write that code, of course, since no instantiation