home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!usc!rpi!psinntp!psinntp!bnlux1.bnl.gov!pmdb.sep.bnl.gov!lally
- From: lally@pmdb.sep.bnl.gov (Keith Lally)
- Subject: Re: APT and TEXT Fields
- Message-ID: <1992Nov17.185830.1520@bnlux1.bnl.gov>
- Sender: news@bnlux1.bnl.gov (Usenet news)
- Organization: Brookhaven National Laboratory
- References: <1992Nov13.162033.4728@bnlux1.bnl.gov> <1e8fvqINN250@gazette.bcm.tmc.edu>
- Distribution: usa
- Date: Tue, 17 Nov 1992 18:58:30 GMT
- Lines: 54
-
- In article <1e8fvqINN250@gazette.bcm.tmc.edu> mparsons@fleming.csc.bcm.tmc.edu (Mark Parsons) writes:
- >
- >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
-
- Mark,
-
- I am referring to fields of the TEXT data type. Some of my help messages
- will exceed 255 bytes so char and varchar are no help. An entry field on
- the form can have a maximum length of 2048 chars or more but how do I
- retrieve the TEXT data and stuff it into the entry field? One way is to
- have the stored procedure read the first 255 bytes of the text, put it into
- parameter1 of type char, then read the next 255 bytes and stuff it into
- another parameter. On the APT side I could then concatenate the params
- together and put the result in the entry field. This seems like a real
- kludgy way to do what should be an easy operation.
-
- I also remember reading in one of the manuals that parameters passed between
- the server and an apt application can only be 255 chars in length. Has
- anyone else had experience with this kind of problem?
-
- Keith Lally
- are limited to 255 bytes and many of our help messagesAs I understand it
-