Multiline field height

Mike Rowan mgrowan at fastmail.com
Thu Feb 15 20:59:09 UTC 2024


Thanks to the member for Barnstaple !

On Fri, Feb 16, 2024, at 7:14 AM, Andy Hilton wrote:
> Doh !
> 
> If I had read my code more carefully I would have seen that - in the event the $add(21) returned null, I was then checking $linecount (so the code works on all versions !) - and only if *that* also returned null was I resorting to my expert calculation based upon content :)
> 
> Good job I am getting my eyes sorted out soon !!!
> 
> Andy Hilton
> Totally Brilliant Software Inc
> Phone (US) : (863) 409 4870 
> Phone (UK) : 0207 193 8582
> Web : www.totallybrilliant.com <http://www.totallybrilliant.com/> 
> Helpdesk : http://totallybrilliant.kayako.com
> Email : andyh at totallybrilliant.com
> 
> > On Feb 15, 2024, at 3:38 PM, Mike Matthews - Omnis via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> > 
> > Hello Mike,
> > 
> > Use $rField.$linecount
> > 
> > Mike Matthews
> > 
> > Lineal Software Solutions
> > Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
> > 
> > omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
> > 
> > www.lineal.co.uk<http://www.lineal.co.uk/>
> > 
> > www.sqlworks.co.uk<http://www.sqlworks.co/>
> > 
> > 
> > 
> > On 15 Feb 2024, at 20:15, Mike Rowan <mgrowan at fastmail.com<mailto:mgrowan at fastmail.com>> wrote:
> > 
> > Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.
> > 
> > 
> > 
> > I read in an old copy of Studiotips that where rField is an Item Reference,  rField.$add(21) returns the number of lines of text in a multiline entry field. An undocumented feature.
> > 
> > Is it still available in 10.22, or is there an alternative method?
> > 
> > Mike Rowan
> > Mobile: 0417 812 509
> > Email: mgrowan at fastmail.com<mailto:mgrowan at fastmail.com>
> > _____________________________________________________________
> > Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,sUxnrXY9zLIBP5SJHXAaqcxVjzb5X45ukAkBi4b2xjfj9N-eBH20tiKChjxhP1IMmtsZoq0lf_W1N8v3hItHWp0PSraNoavd-AGQeTWdwdPn_uQ3hPHp&typo=1
> > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> > 
> > _____________________________________________________________
> > Manage your list subscriptions at https://lists.omnis-dev.com
> > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 

Mike Rowan
Mobile: 0417 812 509
Email: mgrowan at fastmail.com


More information about the omnisdev-en mailing list