Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-29 Thread Richard Gaskin via use-livecode
Sannyasin Brahmanathaswami wrote: > But that it would be nice not be "stuck" with only finding out the > properties of the variable as a variable. > > i.e. pField is a variable with 1 lineā€¦ > > but to be able to address the properties of the object referred to by > a variable containing the

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-29 Thread hh via use-livecode
> BR wrote: > but to be able to address the properties of the object referred > to by a variable containing the long ID of an object/ > How do we do that? I think the "rule" is [assume objID is the long id of an object] get|set of objID --- works for *properties* of the object the number of

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-29 Thread hh via use-livecode
> BR wrote: > but to be able to address the properties of the object referred to by a > variable containing the long ID of an object/ > How do we do that? put the long id of fld 1 into fID put the short name of fID into sID put the number of lines of fld sID

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread J. Landman Gay via use-livecode
On 6/28/17 9:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote: on addSpaceBelowListLines pField,pSpace put the number of lines of pField # returns 1 -- # -- of course, that's a prop of the var, not the object it refes to repeat with x = 1 to (the number of lines of pField)

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread Mike Bonner via use-livecode
Change it to "the number of lines in the text of pfield" and it should work. On Wed, Jun 28, 2017 at 8:59 PM, dunbarx via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi. > > You need a "do" construction to, er, deconstruct the "contents" of the > variable to the object reference of

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread dunbarx via use-livecode
Hi. You need a "do" construction to, er, deconstruct the "contents" of the variable to the object reference of that variable. Do you know how to do this? Craig Neman -- View this message in context:

How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-28 Thread Sannyasin Brahmanathaswami via use-livecode
I'm trying to set up a global text only library that includes text handlers for formatting text run time. Typical use case is : clickable list field with titles that wrap. Say you set type size to 16, text height to 20, dontWrap is false, first indent -40, left margin 20. This looks fine, but