RE: Four easy ones
Posted in 1996
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Transactions, Locking & Isolation
FIRST, why not make the screen current when you're done? SECOND, nope, but you can write c functions that accept a variable number of parms and call them from 4gl. Not a nice practice though. THIRD, RTFM, yes. FOURTH, nope. This info is only available in the error log. HTH, Marco ____________________________________________________________________________ rem radioterapia, which I immeritately manage, seldom agrees with what I say marco greco (Catania, Italy) Work: marcog@ctonline.it rem radioterapia 39 95 447828 fax 446558 (was mar.greco@agora.stm.it) Achea 39 95 503117 --- On Tue, 5 Nov 1996 12:23:16 +0300 (GMT) Ramiro Rela <rrela@dc.uba.ar> wrote: 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) -----------------End of Original Message-----------------