Re: Four easy ones
Posted in 1996
} 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) What about using the Informix Debugger? } 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". Make your application window current by putting a menu option or some such on your debug window? } 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.") No. You can do this in NewEra... } THIRD, } Given } } BEGIN WORK } LOCK TABLE mytable IN EXCLUSIVE MODE } ... } COMMIT WORK } } Does the last statement shown above unlock mytable? Should do. } 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 seem to recall that you can. How? Hah - I don't have *all* the answers... :-) } I need this to be shown by a function (WHENEVER ERROR CALL). } Does I4GL include such debug information into the .4go or .4gi? If you're using RDS you *must* buy the debugger - it does all you want and more - it really is essential! HTH. -- Ciao, Billy NOTE: 1000's of free sex pictures at http://*&^*%!#+^|@$*)(?><"NO CARRIER