Livecode limits: max formattedHeight

Stop by to discuss use cases, requirements, information architecture, flow diagraming, unit testing and usability.

Moderators: FourthWorld, Klaus

Post Reply
trevix
Posts: 1017
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Livecode limits: max formattedHeight

Post by trevix » Fri Aug 16, 2024 12:08 pm

I would like to know if there is a place where I can find the field text limits of Livecode (max chars in a line, max number of lines, etc).

I am asking this because I have a Log field that, when needed, I can check on desktop and mobile to see what happened in my app.
Log files can be quite big, for their own nature, but I set a limit, on launch, for the number of lines that get saved, but I guess it wasn't enough.

Today, opening the log, the script stopped with an error: "value is not a number" on the following line

Code: Select all

   set the height of field "DebugList" of me to tFormattedHeight
tFormattedHeight was more then 200000, because I limit the number of lines on launch and I hadn't launched the app in a while.

So, my question is:
is there a limit for formattedHeigh?
is there a limit for the number of lines in a field?
where can I find these informations?

Thanks
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1225
Joined: Thu Apr 11, 2013 11:27 am

Re: Livecode limits: max formattedHeight

Post by LCMark » Fri Aug 16, 2024 12:58 pm

@trevix: The limit here is in the height of a field - not it’s formattedHeight - control co-ords are limited to +/-30000.
Last edited by LCMark on Fri Aug 16, 2024 4:01 pm, edited 1 time in total.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9974
Joined: Wed May 06, 2009 2:28 pm

Re: Livecode limits: max formattedHeight

Post by dunbarx » Fri Aug 16, 2024 2:15 pm

Trevix.

From the user guide.:
Screenshot 2024-08-16 at 9.15.35 AM.png
Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9958
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Livecode limits: max formattedHeight

Post by FourthWorld » Fri Aug 16, 2024 3:24 pm

Scrollbar?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

trevix
Posts: 1017
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Livecode limits: max formattedHeight

Post by trevix » Fri Aug 16, 2024 3:45 pm

@Craig
Thanks. Can you tell me were, in the online user guide, you found these values?
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9729
Joined: Fri Feb 19, 2010 10:17 am

Re: Livecode limits: max formattedHeight

Post by richmond62 » Fri Aug 16, 2024 4:18 pm

Looking at the yellow 'stains' I assume a search for 'limit' will do the trick. 8)

trevix
Posts: 1017
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Livecode limits: max formattedHeight

Post by trevix » Fri Aug 16, 2024 4:34 pm

Not so easy...
Searching on the forum for "Field limits" get over 29 pages
Searching Limit on the LiveCode web page I mostly get "LiveCode Dictionary and User Guide – Limited Edition
Searching Limit on the LiveCode web page gets nothing
Beside, for what I understand, the online user guide is not exactly searchable: you can choose a page from the left menu and then you can search the retrieved web page only (browser search).
The LC app user guide, again...for what I know, is not searchable. Only the dictionary.
Same for the LC App User guide.
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 294
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: Livecode limits: max formattedHeight

Post by SWEdeAndy » Fri Aug 16, 2024 5:05 pm

trevix wrote:
Fri Aug 16, 2024 4:34 pm
The LC app user guide, again...for what I know, is not searchable. Only the dictionary.
In LiveCode, in the Help menu, choose User guide. A pdf opens that is perfectly searchable. :)
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.se/en

stam
Posts: 2981
Joined: Sun Jun 04, 2006 9:39 pm

Re: Livecode limits: max formattedHeight

Post by stam » Fri Aug 16, 2024 9:51 pm

SWEdeAndy wrote:
Fri Aug 16, 2024 5:05 pm
In LiveCode, in the Help menu, choose User guide. A pdf opens that is perfectly searchable. :)
Is there really an excuse nowadays for not having this as an online resource?

99.9% of all developers nowadays use search engines online. It finds stuff in the forum, the API in its wiki form you name it. And the modern search engines are good at fuzzy searches so I usually find what I'm looking for, being a bit fuzzy in my searches ;)
And I always have more success using google rather than the forum's search.

But PDF is removed from this - which is a pity because it's a great resource.
It really should be available as an online resource, available to search engines...

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 294
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: Livecode limits: max formattedHeight

Post by SWEdeAndy » Sat Aug 17, 2024 11:56 am

@stam Agreed on all points! :D
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.se/en

Post Reply

Return to “Software Engineering”