STRSORT trailing NULLs and FILEPUTVARIABLES additions

1 view
Skip to first unread message

John Bridges

unread,
Apr 28, 2008, 1:33:53 PM4/28/08
to after...@googlegroups.com
New build of AfterGRASP is up for download:

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

----------------------------------------------------------------------------
Mon, 28 April 2008

@DRAWOFFX and @DRAWOFFY fixed to match @DRAWOFFMINX and @DRAWOFFMINY

STRLINECOUNT was not handling strings with trailing NULL characters
correctly, it was returning a count one less than the correct value.

STRSORT was including extra NULL characters at the end of the result,
sometimes a single NULL, sometimes 3 NULL characters. Fixed.

FILEPUTVARIABLES now supports wildcard variable names.

FILEPUTVARIABLES now supports filehandles as well as filenames, so
you can do this:

drawclear white
set a 1 b 2 c 3 x 99 y 98 z 97 hello xx goodbye yy
fileputvariables test.ini hello goodbye
fs = fileappend(test.ini)
fileseek @fs 0 2
fileputvariables @fs a b c
fileputvariables @fs x y z
fileclose @fs
messagebox fileget(test.ini)
exitnow

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

Reply all
Reply to author
Forward
0 new messages