SP Popup Functions

 TAGMARRAY()    Tag elements in muti-dimensioned array
 STAGFIELDS()   Tag fields
 UNBOX()        Removes a box created by makebox()
 SPOPORDER()    Popup allows user to change viewing (index) order
 SPOPSEEK()     Popup seek based on present index keys
 VIEWMEMOS()    Popup viewing (non-edit mode) of memos
 VERTVIEW()     Pops up a vertical view of the current record
 TAGARRAY()     Tag selected elements of an array
 SGETMANY()     Virtual (scrolling) gets in a popup box
 AMSG()         Pop up message box for an array of messages
 POPUPDIR()     Popup of a given directory for file selection
 POPREAD()      Pops up a box with 1-5 say-get combinations
 POPVDATE()     Pops up a picklist of virtual dates
 POPEX()        Pops up an achoice for a certain filespec
 POPMONTH()     Popup month selection
 POPCOLSEL()    Popup color grid for selecting a single color
 PROGINDEX()    Perform an index with a progress box
 PROGEVAL()     Perform a Database DBEVAL() with a progress box
 POPVYEAR()     Pops up a picklist of virtual years
 PROGCOUNT()    Perform a count with a progress box
 PROGDISP()     Displays progress bar in box created with PROGON()
 PROGOFF()      Removes a progress bar box created by PROGON()
 MESSYN()       Popup YesNo prompt box
 MCHOICE()      Creates a box for an Achoice call
 MFIELDS()      Pops up an selection box for current dbf fields
 GETDATE()      Point and shoot calendar
 MAKEBOX()      Draws a box on the screen with optional shadow,
                returns saved screen
 PLSWAIT()      Pops up a 'Please Wait' window or removes it
 ONE_READ()     Pop-up window with 1-4 Say/Get combinations
 MULTMSGYN()    Multi-line popup message - yes -no
 MFIELDSTYPE()  Pops up a list of fields of given type(s)
 MSG()          Displays up to a 9 line message in a window
 HARDCOPY()     Prints current record or memo fields to printer
 EDITMEMO()     Performs a windowed memoedit() on a memo field
 ASCIITABLE()   Pops up an ASCII table for character selection
 DELREC()       Dialog box to delete/undelete current record
 EDITMEMOV()    Performs a windowed memoedit() on a string
 BROWSE2D()     Popup tbrowse of 2 dimension array (array of arrays)
 SBUNSHADOW()   Removes shadow drawn with SBSHADOW()
 ABORT()        Pops up dialog box asking: Abort  Don't Abort
 SBSHADOW()     Draw a shadow around a box
 PROGON()       Initialize and display a progress bar box
 QUIKREPORT()   Runtime pre-defined report printing module
 P_READY()      Determines if printer is ready, prompts user
 SACHOICE()     Achoice replacement, uses TBROWSE, accepts exception
                codeblock
 S1LABEL()      Prints a single label
 GETCALC()      Pops up a quick 'solar' calculator

 

Advertisements

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_CALCVALID

CALCVALID()

  Short:
  ------
  CALCVALID() Uses GETCALC() calculator function as a GET VALID
  clause

  Returns:
  --------
  <lValid> => valid condition

  Syntax:
  -------
  CALCVALID([bValid])

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

  [bValid] If you pass a validation codeblock, it will
  be checked first. If the GET is already valid, according to the
  codeblock, the calculator will not be popped up. The codeblock
  must return a logical value.

  Examples:
  ---------

   proc test

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

   @10,10 get v1
   @11,10 get v2 when calcwhen(.f.)
   @12,10 get v3 valid calcvalid( {||v3>0}  )   // note the valid                                           // block
                                                 // IF V3 > 0, the calculator
                                                  // will not be called
   @13,10 get v4

   read

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

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

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()