WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Boxes Examples from Users

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Append Text to an Open Box

 Keywords: Append Add Text Open Box PtrPersistent BoxOpen BoxText BoxTextExt

#DefineFunction BoxTextExt(text, bAppend)
   ;----------------------------------------------------------------------------------------------
   ;  Append text to an open box, callable inside udfs
   ;
   ;  text         text to display
   ;  bAppend      append text @FALSE / @TRUE
   ;
   ;  2010-11-12 Lars M. Doornbos
   ;----------------------------------------------------------------------------------------------
   ptr_txt = PtrPersistent(btext, '')
   If bAppend Then text = *ptr_txt:@LF:text
   *ptr_txt = text
   BoxText(text)
#EndFunction

;-- demo -----------------------------------
;
#DefineFunction dummy()
   BoxTextExt('dummy started...',@TRUE)
#EndFunction

BoxOpen('BoxTextExt demo','')
For i = 1 To 5
   BoxTextExt('this is loop number ':i,@FALSE)
   BoxTextExt('',1)

   For j = 1 To 5
      BoxTextExt('test%j%',@TRUE)
   Next j
   dummy()
   TimeDelay(1)
Next i

TimeDelay(2)

BoxTextExt('done',@FALSE)
TimeDelay(2)
Exit



Article ID:   W17686
Filename:   Append Text to an Open Box.txt
File Created: 2010:11:11:08:43:58
Last Updated: 2010:11:11:08:43:58