Teardown

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Teardown

Post by richmond62 » Fri Nov 24, 2023 12:17 pm

Poking around, as one does, among some LiveCode stacks the other day I came across this:

Code: Select all

setup
if the platform is "win32" then
   test the fontlanguage of "Aharoni" is "Hebrew"
   test the fontlanguage of "System" is "ANSI"
else
   -- TODO - test font languages on other platforms
   test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .

Anyone?
Last edited by richmond62 on Fri Nov 24, 2023 1:07 pm, edited 1 time in total.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Teardown

Post by Klaus » Fri Nov 24, 2023 1:00 pm

Neither "setup" (except in "page setup"), "teardown" nor "test" are part of the LC scripting language.
So I guess these are custom handlers/functions.
Nothing in the card or stack script or in a substack?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Teardown

Post by richmond62 » Fri Nov 24, 2023 1:07 pm

Nothing in the card or stack script or in a substack?
No.

That is a file inwith the engine.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Teardown

Post by Klaus » Fri Nov 24, 2023 1:33 pm

What exactly does "inwith" mean? Something like "within"?
My online dictionary failed here...

Anyway, in that case I think this is buried somewhere in the compiled stuff of the engine.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Teardown

Post by richmond62 » Fri Nov 24, 2023 2:01 pm

What exactly does "inwith" mean?
'innen'

'inwith' is a standard English word, so . . .

This is a bit like when I went into a shop in Meersburg and asked,"Hast du etwas Laib?" and got a strange look, when all I wanted was some loaf.
Anyway, in that case I think this is buried somewhere in the compiled stuff of the engine.
Just what is buried? 'Teardown' and the other unknown terms?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Teardown

Post by bn » Fri Nov 24, 2023 2:18 pm

richmond62 wrote:
Fri Nov 24, 2023 12:17 pm
Poking around, as one does, among some LiveCode stacks the other day I came across this:

Code: Select all

setup
if the platform is "win32" then
   test the fontlanguage of "Aharoni" is "Hebrew"
   test the fontlanguage of "System" is "ANSI"
else
   -- TODO - test font languages on other platforms
   test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .

Anyone?
Richmond,

This sounds as it is taken from the testing suites. Did you get it from GitHub?
Livecode has an extensive suite of tests that run to find regressions early on.
Note that "test" is also not part of Livecode.

"teardown" is a handler in this test:
https://github.com/livecode/livecode-id ... codescript

Kind regards
Bernd

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Teardown

Post by Klaus » Fri Nov 24, 2023 2:20 pm

richmond62 wrote:
Fri Nov 24, 2023 2:01 pm
What exactly does "inwith" mean?
'innen'
'inwith' is a standard English word, so . . .
thank you.
https://dict.leo.org/englisch-deutsch/
could not find it!?
richmond62 wrote:
Fri Nov 24, 2023 2:01 pm
Anyway, in that case I think this is buried somewhere in the compiled stuff of the engine.
Just what is buried? 'Teardown' and the other unknown terms?
Sure, what you could not find anywhere else.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Teardown

Post by richmond62 » Fri Nov 24, 2023 2:22 pm

Obviously a bad dictionary . . .

https://www.collinsdictionary.com/dicti ... ish/inwith

I never, ever trust dictionaries that provide a 1 to 1 translation.

Are you going to translate this literally?

"so ist das noch immer eine Kartoffel im Munde des Herrn Pastor."

Because I don't think the Minister had a tatty in his gab, but it was mair like something about How he spoke.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Teardown

Post by bn » Fri Nov 24, 2023 2:55 pm

Hi Richmond,
bn wrote:
Fri Nov 24, 2023 2:18 pm
richmond62 wrote:
Fri Nov 24, 2023 12:17 pm
Poking around, as one does, among some LiveCode stacks the other day I came across this:

Code: Select all

setup
if the platform is "win32" then
   test the fontlanguage of "Aharoni" is "Hebrew"
   test the fontlanguage of "System" is "ANSI"
else
   -- TODO - test font languages on other platforms
   test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .

Anyone?
Richmond,

This sounds as it is taken from the testing suites. Did you get it from GitHub?
Livecode has an extensive suite of tests that run to find regressions early on.
Note that "test" is also not part of Livecode.

"teardown" is a handler in this test:
https://github.com/livecode/livecode-id ... codescript

Kind regards
Bernd
Does this help?

Kind regards
Bernd

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Teardown

Post by Klaus » Fri Nov 24, 2023 3:29 pm

richmond62 wrote:
Fri Nov 24, 2023 2:22 pm
Are you going to translate this literally?
"so ist das noch immer eine Kartoffel im Munde des Herrn Pastor."
I wouldn't translate this at all, why should I? 8)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Teardown

Post by richmond62 » Fri Nov 24, 2023 5:18 pm

I wouldn't translate this at all, why should I?
Well, there are worse things to do on a Friday night. 8)

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Teardown

Post by Klaus » Fri Nov 24, 2023 6:01 pm

And I don't even know any pastor, potato in his mouth or not... :-D

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Teardown

Post by richmond62 » Fri Nov 24, 2023 8:44 pm

Your life sounds a bit dull, why not advertise online: "Pastor required with potato in mouth." I'll bet you get some interesting responses. 8)

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Teardown

Post by Klaus » Fri Nov 24, 2023 9:00 pm

My life is everything but dull, especially after my departure from the church about 53 years ago, old chum! :-)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”