Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!uunet!trac2000!gls From: gls@trac2000.ueci.com (Gary Smith) Newsgroups: comp.databases Subject: Re: Need help w/Informix 4gl forms Summary: Another way Message-ID: <985@trac2000.ueci.com> Date: 14 Feb 91 13:02:35 GMT References: <1991Feb12.220516.242@investor.pgh.pa.us> <53027@sequent.UUCP> Distribution: usa Organization: UE&C - Catalytic in Philadelphia, PA Lines: 27 In article <53027@sequent.UUCP>, lugnut@sequent.UUCP (Don Bolton) writes: > In article <1991Feb12.220516.242@investor.pgh.pa.us> bwm@investor.pgh.pa.us (Bruce Miller #307) writes: > >I am working with Informix 4gl v.1.10.00 and need some help with screen > >forms. What I would like to do is to call a screen form using a program > >variable rather than calling the form directly. Another way would be to pass the form name on the command line and when you enter the program get the argument i.e: LET pawnbroker = ARG_VAL(1) Then prepare a statement like LET exec_str = "OPEN FORM pawn_form FROM '", pawnbroker, "'" PREPARE prep_form from exec_str EXECUTE prep_form And then you can use form pawn_form as a normal form, as if you opened it with constants. Any statement can be made that way. Good Luck! Gary. -- Gary L. Smith @ UE&C-Catalytic ||| Reply at: ||| UUCP: ..!uunet!trac2000!gls Spock - ST IV: "What does it ||| INTERNET: gls@trac2000.ueci.com mean 'Exact change only' ?" |||