Two field INPUTBOX and 8 new simple string functions

2 views
Skip to first unread message

John Bridges

unread,
Jun 3, 2013, 5:45:01 PM6/3/13
to after...@googlegroups.com
New build of AfterGRASP is up for download:

http://www.aftergrasp.com/download/

agsetup_20130603.exe

----------------------------------------------------------------------------
Mon, 02 Jun 2013

INPUTBOX now supports a two field input box. The added optional values
are VARIABLE2 and PROMPT2

   RESULT = INPUTBOX(VARIABLE)
   RESULT = INPUTBOX(VARIABLE,PROMPT)
   RESULT = INPUTBOX(VARIABLE,PROMPT,TITLE)
   RESULT = INPUTBOX(VARIABLE,PROMPT,TITLE,VARIABLE2)
   RESULT = INPUTBOX(VARIABLE,PROMPT,TITLE,VARIABLE2,PROMPT2)
   INPUTBOX VARIABLE
   INPUTBOX VARIABLE,PROMPT
   INPUTBOX VARIABLE,PROMPT,TITLE
   INPUTBOX VARIABLE,PROMPT,TITLE,VARIABLE2
   INPUTBOX VARIABLE,PROMPT,TITLE,VARIABLE2,PROMPT2


Eight new simple string functions that simplify common search/parse operations.
They all have the exact same syntax as STRSEARCH and STRSEARCHREVERSE, but
insteading returning a string index position, they return a string result.
For failure, all these new stringfuntions return a NULL string.

  STRAFTER
  STRBEFORE
  STRAFTERINCLUDE
  STRBEFOREINCLUDE
  STRAFTERREVERSE
  STRBEFOREREVERSE
  STRAFTERINCLUDEREVERSE
  STRBEFOREINCLUDEREVERSE


Examples:

  local test "The123Hello123Goodbye"
  local search "123"

; gives "Hello123Goodbye"
  messagebox strafter(@test,@search) strafter                               

; gives "The"
  messagebox strbefore(@test,@search) strbefore                             

; gives "123Hello123Goodbye"
  messagebox strafterinclude(@test,@search) strafterinclude                 

; gives "The123"
  messagebox strbeforeinclude(@test,@search) strbeforeinclude               

; gives "Goodbye"
  messagebox strafterreverse(@test,@search) strafterreverse                 

; gives "The123Hello"
  messagebox strbeforereverse(@test,@search) strbeforereverse               

; gives "123Goodbye"
  messagebox strafterincludereverse(@test,@search) strafterincludereverse   

; gives "The123Hello123"
  messagebox strbeforeincludereverse(@test,@search) strbeforeincludereverse 


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

Reply all
Reply to author
Forward
0 new messages