[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Upper/Lower



I believe the Language Tutorial (not the Reference Manual) which
accompanies SQR3.0 shows how to do what you have suggested with the
initcap function as its example.

Wes Bailey
Consultant
Ray Ontko & Co.

----------------------------------------------------------------------

   Gee, Nathan, I smell an article.  One of the really powerful
   capabilities of SQR is the ability to add user written functions.
   Write a function in C, add it to ufunc.c, compile it, relink the
   SQR executable, and voila, you have a new function that can be used
   in LET, WHILE, IF, etc.  Just imagine:

   let $newstring = initcap($oldstring)

   This would be even better than Oracle's initcap function, in that
   SQR doesn't care if it is a LONG datatype or not.

   I haven't done this in years, and it was done in Vax C (not ANSI by
   a long shot) on a Vax under VMS 5.5, but the basic capability still
   exists on all platforms currently supported.

   Has anyone done something similar?  Can we assemble enough people
   to do it here?

   The gauntlet has been thrown down... will someone accept the
   challenge?  I will dredge my old 8" floppies for the notes, if
   someone will volunteer the C knowledge (of which I am sorely
   lacking).

   Matt...