jmac13
Member
Hi All,
I'm using open edge 10.2b but never used objects and classes within it and wouldn't mind starting to use them.
But I'm Wondering what are the benfits of say creating a class and say doing something that we do a lot (see below). Where code is in a .p file we make it persistent in a handle (which i guess is just a object) and then running stuff from it and deleting at the end. compared to doing in a class and object? cheers in advance thanks
I'm using open edge 10.2b but never used objects and classes within it and wouldn't mind starting to use them.
But I'm Wondering what are the benfits of say creating a class and say doing something that we do a lot (see below). Where code is in a .p file we make it persistent in a handle (which i guess is just a object) and then running stuff from it and deleting at the end. compared to doing in a class and object? cheers in advance thanks
Code:
if not valid-handle(hanCertUtils) then
run gui_utils\certUtils.p persistent set hanCertUtils.
run addCertificate in hanCertUtils( input manpick.wordnum,
input rowid(specpart)).
if valid-handle(hanCertUtils) then
delete procedure hanCertUtils.