Four easy ones
Posted in 1996
Before I start asking, let me tell you I'm working on I4GL V4.1 under AIX. FIRST, I'd like to show some debug messages while running my I4GL programs. I mean having a window or something with messages of mine scrolling up where I can read information about program flow and other stuff (like "verbose" option on some software) Am I clear? I tried having a window allways opened and make it current when I'd like to read my messages, but then I can't hide it 'cause I don't know how to "send it back". SECOND, Is there a way to write functions with variable amount of parameters in I4GL 4.1? Example DEFINE message CHAR(20), totalPrice SMALLINT LET message="Some trash..." CALL PrintAllThisStuff(message, "Hello world!", totalPrice) CALL PrintAllThisStuff("Blah, blah") CALL PrintAllThisStuff("OOPS! We've got ", status, " error, babe.") THIRD, Given BEGIN WORK LOCK TABLE mytable IN EXCLUSIVE MODE ... COMMIT WORK Does the last statement shown above unlock mytable? FOURTH. Can I get the current line, current module (current function, am I asking too much?) that was executing when a run-time error was ocurred? I need this to be shown by a function (WHENEVER ERROR CALL). Does I4GL include such debug information into the .4go or .4gi? Thanks. --- Rad. (Ramiro Rela)