I'm trying to create a label defining word which I would like to work as
follows:

xPos  yPos  s" this is the labels text"  label:  labelName

I tried this code:

\ Define a label that places itself
: label:            ( x y addr count --- )
    create
    , , , ,
    does>
        dup over over
        3 + @i swap 2 + @i moveCursor
        1+ @i @i
;

which at run time I want to return the addr and count of the labels text in
flash.

The problem is, I think, that s" doesn't compile to flash outside of a
definition.

How can I change this code to force the label's text to be stored in flash?

-- 
Craig Lindley
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to