home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / sybase / 326 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  1.7 KB

  1. Path: sparky!uunet!think.com!sdd.hp.com!cs.utexas.edu!bcm!mparsons
  2. From: mparsons@fleming.csc.bcm.tmc.edu (Mark Parsons)
  3. Newsgroups: comp.databases.sybase
  4. Subject: Re: APT and TEXT Fields
  5. Date: 16 Nov 1992 15:50:17 GMT
  6. Organization: Baylor College of Medicine, Houston, Tx
  7. Lines: 34
  8. Distribution: usa
  9. Message-ID: <1e8fvqINN250@gazette.bcm.tmc.edu>
  10. References: <1992Nov13.162033.4728@bnlux1.bnl.gov>
  11. Reply-To: mparsons@fleming.csc.bcm.tmc.edu (Mark Parsons)
  12. NNTP-Posting-Host: fleming.csc.bcm.tmc.edu
  13. Originator: mparsons@fleming.csc.bcm.tmc.edu
  14.  
  15.  
  16. In article <1992Nov13.162033.4728@bnlux1.bnl.gov>, lally@pmdb.sep.bnl.gov (Keith Lally) writes:
  17. |> 
  18. |> I would like to display help screens throughout my APT 
  19. |> application that are retrieved from a helptext table.
  20. |> When a function key is pressed the help form execs a
  21. |> stored procedure on the server that returns the help
  22. |> text for the particular form.  Does anyone know how
  23. |> to return a text field from the server into an APT 
  24. |> form?  Is it possible?  
  25.  
  26. Our on-line help function just retrieves the appropriate
  27. help message from a table via a submit-sqlbegin-sqlend
  28. statement.  Very easy . . .  
  29.  
  30. When you say 'text', do you mean datatype TEXT, or just
  31. a character string(char or varchar)?
  32.  
  33. I can think of two ways to return text from a stored
  34. procedure call.
  35.  
  36. One is to send back a string as the error message for an
  37. error that you generate via the raise-error command.  Of
  38. course, you then have to 1) test for the occurrence of
  39. the 'error' and then 2) parse the resulting error text to
  40. pull out the 'overhead'.  Kinda messy for this situation.
  41.  
  42. The other is to just pass it back as a return parameter.
  43.  
  44.  
  45. Hmmmmm, that's 3 ways . . . . . or did I miss something in
  46. the question? ;-)
  47.  
  48. Mark
  49.