home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!sdd.hp.com!cs.utexas.edu!bcm!mparsons
- From: mparsons@fleming.csc.bcm.tmc.edu (Mark Parsons)
- Newsgroups: comp.databases.sybase
- Subject: Re: APT and TEXT Fields
- Date: 16 Nov 1992 15:50:17 GMT
- Organization: Baylor College of Medicine, Houston, Tx
- Lines: 34
- Distribution: usa
- Message-ID: <1e8fvqINN250@gazette.bcm.tmc.edu>
- References: <1992Nov13.162033.4728@bnlux1.bnl.gov>
- Reply-To: mparsons@fleming.csc.bcm.tmc.edu (Mark Parsons)
- NNTP-Posting-Host: fleming.csc.bcm.tmc.edu
- Originator: mparsons@fleming.csc.bcm.tmc.edu
-
-
- In article <1992Nov13.162033.4728@bnlux1.bnl.gov>, lally@pmdb.sep.bnl.gov (Keith Lally) writes:
- |>
- |> I would like to display help screens throughout my APT
- |> application that are retrieved from a helptext table.
- |> When a function key is pressed the help form execs a
- |> stored procedure on the server that returns the help
- |> text for the particular form. Does anyone know how
- |> to return a text field from the server into an APT
- |> form? Is it possible?
-
- Our on-line help function just retrieves the appropriate
- help message from a table via a submit-sqlbegin-sqlend
- statement. Very easy . . .
-
- When you say 'text', do you mean datatype TEXT, or just
- a character string(char or varchar)?
-
- I can think of two ways to return text from a stored
- procedure call.
-
- One is to send back a string as the error message for an
- error that you generate via the raise-error command. Of
- course, you then have to 1) test for the occurrence of
- the 'error' and then 2) parse the resulting error text to
- pull out the 'overhead'. Kinda messy for this situation.
-
- The other is to just pass it back as a return parameter.
-
-
- Hmmmmm, that's 3 ways . . . . . or did I miss something in
- the question? ;-)
-
- Mark
-