Re: language syntax question

2014-11-20 Thread Bob Sneidar
Thought the cat after doing his ‘business’. :-) Bob S On Nov 19, 2014, at 11:35 , Sean Cole (Pi) mailto:s...@pidigital.co.uk>> wrote: 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but i

Re: language syntax question

2014-11-20 Thread Bob Sneidar
try get word 1 of line pl of the text of obj Understand that OF is getting a property of the following object. In your example you are trying to get the text of a line. A line does not have the text property, only fields do. Make sense? Bob S On Nov 19, 2014, at 10:57 , Mike Doub mailto:mik

Re: language syntax question

2014-11-19 Thread Sean Cole (Pi)
On 19 November 2014 20:14, Michael Doub wrote: > local savebuf, savedcallback, savedobj > On initialize_read @buf, obj > put (the address of buf) into savebuf -- How do I do this? > put obj into savedobj > open file serialport > end initialize_read > It depends on *where* you want t

Re: language syntax question

2014-11-19 Thread Michael Doub
Here is the syntax that works. thanks goes to Scott Rossi get word 1 of line 1 of (text of obj) On 11/19/14 3:23 PM, Peter Haworth wrote: I've run into the first issue many times. It seems that if the property you are trying to get is a not a valid property of the referenced container, then

Re: language syntax question

2014-11-19 Thread Peter Haworth
I've run into the first issue many times. It seems that if the property you are trying to get is a not a valid property of the referenced container, then all works fine. If it is a valid property, then what you get is that property of the container. So in your example: Function something obj pl

Re: language syntax question

2014-11-19 Thread Michael Doub
Thanks Sean, How would I go about saving the reference for use later? I am trying to pass in a buffer address to a library driver routine for a serial port. You must keep a read posted until data arrives. The allert the caller thru a callback. in a cardscript: local buffer On mouseup p

Re: language syntax question

2014-11-19 Thread Michael Doub
Thanks Scott. Of course now that I see the answer, it is obvious. Regards, Mike On 11/19/14 2:28 PM, Scott Rossi wrote: See if this works for you: on mouseUp put something(long ID of field 1,2) end mouseUp function something obj, pl return the formattedRect of line pl of obj

Re: language syntax question

2014-11-19 Thread Sean Cole (Pi)
Hi Mike Issue 1- Get is for parameters which 'word' is not. So you would use 'put' rather than 'get'. Get works well for formattedRect. To use 'get' for getting the word 1 of 'obj' you would do this: Get word 1 of line pl of the text of obj because 'the text' is a parameter of your 'obj' Issu

Re: language syntax question

2014-11-19 Thread Scott Rossi
See if this works for you: on mouseUp put something(long ID of field 1,2) end mouseUp function something obj, pl return the formattedRect of line pl of obj & cr & \ word 1 of line pl of (text of obj) end something Regards, Scott Rossi Creative Director Tactile Media, UX/UI

language syntax question

2014-11-19 Thread Mike Doub
i have been struggling with a couple of language issues and I hope some one can set me straight. Issue 1). What is the syntax to get the contents of a field when you have the long IDE to the field. Put something ( long ID of field "foo", 2) into x ... Function something obj pl Get the forma