FILEPUTVARIABLES option and MEMNEW enhancement

1 view
Skip to first unread message

John Bridges

unread,
Apr 30, 2008, 3:23:40 PM4/30/08
to after...@googlegroups.com
New build of AfterGRASP is up for download:

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

----------------------------------------------------------------------------
Wed, 30 April 2008

MEMNEW fixed to allow creating zero length memory buffers.


New system variable, FILESTRINGALWAYS which affects the FILEPUTVARIABLES
command. The default is for FILEPUTVARIABLES to not include the quote string
around variable values which do not require it. If FILESTRINGALWAYS is set
to ON/TRUE, then the quote string will always be used.

SET FILESTRINGALWAYS ON
SET FILESTRINGALWAYS OFF

Example:

drawclear red
a = 1
b = 2
c = 3
d = "Hello there"
set filestringalways on
memnew teston
fileputvariables mem:teston a b c d
set filestringalways off
memnew testoff
fileputvariables mem:testoff a b c d
with texthtml on text "<html>"
color white
set textwrap off
textln "ON"
textln @@teston
textln
textln "OFF"
textln @@testoff
set variables on
wait
exitnow


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

Reply all
Reply to author
Forward
0 new messages