PxPlus User Forum

Twitter Twitter Twitter

Author Topic: classes with accept properties  (Read 535 times)

Thomas Bock

  • Diamond Member
  • *****
  • Posts: 131
    • View Profile
classes with accept properties
« on: June 05, 2019, 10:37:30 AM »
For the ease of use I wish there would be no error 88 when accessing a previously unassigned property. The standard empty value should be returned, which is $$ or zero.

! sample class
def class "miniEnv" accept properties
end def

! sample use
e=new("miniEnv")
print e'missingProp ---> Error 88