Hey Thomas, can you take a look at this and tell me if this is how you intended for iteration through a List to be done? The objects symbols
and childScopes
are List objects.
METHOD PUBLIC VOID addSymbolsDeep(TABLE symbolRecord BIND): DEF VAR symbol AS CLASS Symbol NO-UNDO. symbols:getNthElement(0). DO WHILE symbols:hasNextElement(): symbol = CAST(symbols:nextElement(), Symbol). CREATE symbolRecord. ASSIGN symbolRecord.symbol = symbol symbolRecord.progressType = symbol:getProgressType() .
Hello! In our application we need some classes to be created only once. I will implement these classes as singletons (with the help of the static keyword in 10.1.C)
METHOD PUBLIC STATIC CLASS CLSBETaskUserBase getInstance():
IF NOT VALID-OBJECT (clsBEModel) THEN
clsBEModel = NEW CLSBETaskUserBase().
RETURN CAST (clsBEModel, CLSBETaskUserBase).
END METHOD.
Hello!
I try to refactor an existing source i.e. make a class out of it.
The problem is that the existing source accesses (and changes) global shared variables.
When I create a class and want to reuse the existing code I get a problem because shared entities cannot be defined inside a class or interface. How can I access and change these global shared variables inside my class?
I want to use odbc_connect() to connect my 10.1B Progress OE database. I am getting "Can't open lib '/progress/dlc/odbc/lib/pgoe1022.sl'" error. The database server and apache are all on the same server HP-UX. Anybody had this working?
thanks,
G.
Please feel free to make suggestions, requests, contributions.