SP Get system Functions

 SMALLKCLR()    Clears GET-HOTKEY lookup combinations set up with SMALLKSET()
 POPUPKCLR()    Clears GET hotkey popups set up with POPUPKSET()
 PMREADER()     Creates specialized PLUS/MINUS get reader block
 SMALLKSET()    Sets up GET-HOTKEY lookup combinations using SMALLS()
 PICKREADER()   Creates specialized picklist reader block
 POPUPWHEN()    Allows use of a popup for a GET WHEN clause
 POPUPKSET()    Set a popup for hotkey access from a GET, with autoassignment
 POPUPVALID()   Allows use of a popup for a GET VALID clause
 CALENDVALID()  Uses GETDATE() popup calendar function as a GET VALID clause
 CALCKCLR()     Clears hot keys set by CALCKSET()
 CALCKSET()     Allows use of GETCALC() calculator in GETS
 SMALLWHEN()    Uses SMALLS() in a WHEN condition for a GET
 CALENDWHEN()   Uses GETDATE() function as a GET WHEN clause
 CALCWHEN()     Uses GETCALC() calculator function as a GET WHEN clause
 SMALLVALID()   Uses SMALLS() in a VALID condition for a GET
 CALCVALID()    Uses GETCALC() calculator function as a GET VALID clause
 RAT_READ()     Mouseable read
 GENVAL()       Generic VALID clause validation with message
 GENREADER()    Creates specialized user defined get reader block
 GETAKEY()      Gets intent of last keystroke
 SBREADER()     Creates specialized spacebar spinner get reader block
 ED_G_PIC()     Returns appropriate picture for getting a field
 CALENDKSET()   Allows use of GETDATE() calendar in GETS
 YNREADER()     Creates specialized Yes/No get reader block
 CALENDKCLR()   Clears hot keys set up by CALENDKSET()

 

SP_GETCALC

GETCALC()

  Short:
  ------
  GETCALC() Pops up a quick 'solar' calculator

  Returns:
  --------
  <expTotal> => total from calculator as either type
  "N" or "C"

  Syntax:
  -------
  GETCALC([nStart],[lReturnChar])

  Description:
  ------------
  Pop up 'solar' calculator for simple arithmetic

  [nStart]  starting number

  [lReturnChar]  return as character string (default
  .t.). False returns as a number.

  Examples:
  ---------
   GETCALC(5)

  NOTES:
  -------
  See also CALCWHEN(), CALCVALID(), CALCKSET()

  Source:
  -------
  S_GETCAL.PRG

SP_CALCWHEN

CALCWHEN()

  Short:
  ------
  CALCWHEN() Uses GETCALC() calculator function as a GET WHEN
  clause

  Returns:
  --------
  <lWhen> => when condition

  Syntax:
  -------
  CALCWHEN([lShowonUp],[lReturn])

  Description:
  ------------
  This sets up the popup GETCALC() calculator for use
  in a GET WHEN clause. (the pre validation block). If a value is
  selected, it is assigned to the get. (if ESCAPE is pressed, it
  is no) The Calculator function will pop up upon entry into a GET
  field.

  [lShowOnUp] Normally you wouldn't want this WHEN to
  occur if the user is using the up arrow, and if <lShowOnUp> is
  .f. (the default) it does not occur (the GET is just skipped)

  [lReturn] If set to False (the default) the GET is
  never actually edited, as the WHEN will always return .f., but
  it is assigned the value returned by GETCALC(). By setting it to
  True, the Calculator will pop up, and then the GET will also be
  put thorugh the normal get editor.

  Examples:
  ---------

   proc test

   v1 := 10
   v2 := 10
   v3 := 10
   v4 := 10

   @10,10 get v1
   @11,10 get v2 when calcwhen(.f.)   // calculator pops up  when
                                   // get is entered. No  direct
                                   // editing.
   @12,10 get v3 valid calcvalid(  {||v3>0}  )
   @13,10 get v4

   read

  Notes:
  -------
  You might want to look at CALCVALID() and CALCKSET()
  for other options.

  Source:
  -------
  S_CALCVW.PRG

See also : CALCKSET(), GETCALC(), CALCKCLR(), CALCVALID()

 

SP_CALCKSET

CALCKSET()

  Short:
  ------
  CALCKSET() Allows use of GETCALC() calculator in GETS

  Returns:
  --------
  Nil

  Syntax:
  -------
  CALCKSET(nKey,cProc,cVar,lAssign)

  Description:
  ------------
  Sets up a call to GETCALC() when key <nKey> is
  pressed while in proc or function <cProc> at variable <cVar>.

  If <lAssign> is True, the value returned from
  GETCALC() is assigned to the current get. Use CALCKCLR() when
  done.

  Examples:
  ---------
   // this will pop up a the calculator when F2 is pressed  while
   // on the get V2. The value will be assigned to V2.

   proc test

   v1 := 123
   v2 := 456

   @10,10 get v1
   @11,10 get v2

   CALCKSET(K_F2,"TEST","V2",.t.)

   read

   CALCKCLR()  // clear it out

  Source:
  -------
  S_CALCK.PRG

See also : GETCALC(), CALCKCLR(), CALCVALID(), CALCWHEN()

SP_CALCKCLR

CALCKCLR()

  Short:
  ------
  CALCKCLR() Clears hot keys set by CALCKSET()

  Returns:
  --------
  Nil

  Syntax:
  -------
  CALCKCLR()

  Description:
  ------------
  Clears hot keys set by CALCKSET()

  Examples:
  ---------
   // this will pop up a the calculator when F2 is pressed  while
   // on the get V2. The value will be assigned to V2.

   proc test
   v1 := 123
   v2 := 456

   @10,10 get v1
   @11,10 get v2

   CALCKSET(K_F2,"TEST","V2",.t.)

   read

   CALCKCLR()  // clear it out

  Source:
  -------
  S_CALCK.PRG

See also : CALCKSET(), GETCALC(), CALCVALID(), CALCWHEN()