Re: Q: Help on SHOWHELP
Posted in 1998
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
On Dec 8, 1998, Jonathan Leffler, who ought to be reminded more often about how much we all appreciate his efforts, promptly and insightfully wrote: >On Tue, 8 Dec 1998, Mr. Science wrote: >> Help! >> >> I'm moving an app from SunOS 4.1.3 and Informix family 5 (which actually >> includes 4GL 4.10) to Solaris 2.6 and the version 7.20's. The 4GL source >> below works fine on the former system, but the comments indicate things that >> work or don't work in the latter system. >> >> Did something change with the SHOWHELP function between 4.10 and 7.20? > >Not that I know of. I removed the database statement from your code >(because the program doesn't access the database), and ran it on my >Sparc 20 under Solaris 2.6 with I4GL 7.20.UD1 and I4GL-RDS 7.20.UD1, and >both programs worked as expected. I wasn't able to test the F1 key >because I'm not using a suitably rigged termcap entry, but all the other >showhelp commands worked OK. I used the helpfile.msg file: > > .1 > This is help message number 1 > .3 > This is the third help message. > >I compiled this using: > mkmessage helpfile.msg helpfile.ex >The file was in my current directory when I ran the tests. Okay, the differences: I've got a Sparc 5 (you show-off!), and "c4gl -V" tells me it's 7.20.UD2, with "onmonitor -V" telling me it's 7.30.UC3. >I cannot reproduce your problem, so you need to verify that the sample >program you sent really doesn't work. If it doesn't, then report the >problem to Informix Tech Support, but there is either a breakage because >you're using 7.20.UDx where x > 1 and SHOWHELP is broken in that >version, or there's something funny about your setup. I'm pretty much >certain that the presence or absence of the database has nothing >whatsoever to do with the issue. Executive summary: I've verified it doesn't work; I'll report it to Tech Support; x = 2 (I should have included that in the original post, sorry); I've run it on two systems set up by two different organizations (though this may not mean squaddooch); presence or absence of database has no effect. Thanks for looking into this! -Mr. Science #include <hearfeltthanks.h> >Yours, >Jonathan Leffler (jleffler@informix.com) #include <witticism.h> >Guardian of DBD::Informix v0.60 -- http://www.perl.com/CPAN >Informix IDN for D4GL & Linux -- http://www.informix.com/idn > >-- less extensively indented version of Mr Science's code. > >MAIN > OPTIONS HELP FILE "helpfile.ex" > CALL SHOWHELP (1) # This works fine! > CALL SHOWHELP (3) # This is OK, too! > > MENU "main menu" > COMMAND "Exit" > EXIT MENU > COMMAND "Help" > DISPLAY "->->Help option chosen!!!<-<-" # This displays > CALL SHOWHELP (3) # This doesn't > COMMAND KEY (F1) > DISPLAY "->->Hey, he pressed F1!!!<-<-" # This displays > CALL SHOWHELP (1) # This doesn't > END MENU > CALL SHOWHELP (1) # Nor does this >END MAIN