How to determine Commercial or Community versions.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: How to determine Commercial or Community versions.
Richard,
Your script is almost the same as what I already proposed earlier in this thread.
Mark
Your script is almost the same as what I already proposed earlier in this thread.
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How to determine Commercial or Community versions.
Indeed it is, yet after the subsequent posts about using the address it seemed helpful as a reminder.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How to determine Commercial or Community versions.
You think people might forget, after reading this not-so-very-long thread? 
Mark

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: How to determine Commercial or Community versions.
Code: Select all
if revLicenseType() is "community" then
-- do what ya like
end if
Last edited by monte on Fri Jan 10, 2014 1:53 am, edited 1 time in total.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: How to determine Commercial or Community versions.
Monte,
If I remember correctly, the revLicenseType function caused an error in standalones made with older versions. Does this function work in standalones now?
According to the dictionary, one shouldn't use this function and it would always return "Enterprise". I know that this dictionary entry is wrong, but perhaps one should refrain from using this function, just to be sure.
Kind regards,
Mark
If I remember correctly, the revLicenseType function caused an error in standalones made with older versions. Does this function work in standalones now?
According to the dictionary, one shouldn't use this function and it would always return "Enterprise". I know that this dictionary entry is wrong, but perhaps one should refrain from using this function, just to be sure.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: How to determine Commercial or Community versions.
I don't see any mention of standalones in the original question. If that's a requirement then I'm sorry. Use Richard's function instead.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: How to determine Commercial or Community versions.
..........
Last edited by [-hh] on Wed Aug 13, 2014 1:34 pm, edited 1 time in total.
shiftLock happens
Re: How to determine Commercial or Community versions.
Thanks for all the comments and different solutions.
As usual with LiveCode many alternate ways to solve a problem..that's not a critisim by the way
As usual with LiveCode many alternate ways to solve a problem..that's not a critisim by the way

Andy .... LC CLASSIC ROCKS!
Re: How to determine Commercial or Community versions.
TMTOWTDIAndyP wrote: As usual with LiveCode many alternate ways to solve a problem..
A very old mantra which applies to most of dynamic modern languages
including Livecode

By the way, I like Mark's one

Regards,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: How to determine Commercial or Community versions.
..........
Last edited by [-hh] on Wed Aug 13, 2014 1:34 pm, edited 1 time in total.
shiftLock happens
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How to determine Commercial or Community versions.
Historically, the engine does not allow us to override built-in engine commands and functions. This is done primarily for performance reasons, but it can also be considered a security measure as well: if my library can alter the behavior of your scripts by intercepting commands you intended to be handled by the engine, the results could range from annoyance to catastrophe.[-hh] wrote:Assume there is an external to password protect scripts (Monte certainly could do this at once, right out of his brain). And if such an external is simply adding "set password" to the vocabulary of community versions of the IDE.
How would you then distinguish between commercial and community versions of the IDE?
For these reasons, even when the "open language" initiative is released, I doubt they'd allow all the built-in commands to be overridable.
That said, there are legitimate reasons why one might want to protect scripts in the Community Edition, mostly to ensure their integrity against possibly alteration by other scripts with malicious intent.
This has been raised to the development team, but I suspect that if a solution is offered, or even if a solution were to come from the community, it would not affect the expected behavior of the engine's current password mechanism.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How to determine Commercial or Community versions.
Monte, don't do that![-hh] wrote:There remains one problem.
Assume there is an external to password protect scripts (Monte certainly could do this at once, right out of his brain). And if such an external is simply adding "set password" to the vocabulary of community versions of the IDE.
How would you then distinguish between commercial and community versions of the IDE?

!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: How to determine Commercial or Community versions.
Relax... I think @-hh is overrating my brain here...Thierry wrote:Monte, don't do that!
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: How to determine Commercial or Community versions.
Oups, sorry.Relax... I think @-hh is overrating my brain here...
Was supposed to be a joke...
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: How to determine Commercial or Community versions.
Hi,
First of all, I don´t think that the externals API currently allows for properties, but I suppose that this could be changed. If there is an external that can set a password using a password property or command, this property or command should be in the externalCommands or externalFunctions, or perhaps in the externalProperties (which doesn't exist yet). If it were in the externalProperties, you'd know that it isn't in the engine and hence you'd be using the open source edition.
Kind regards,
Mark
First of all, I don´t think that the externals API currently allows for properties, but I suppose that this could be changed. If there is an external that can set a password using a password property or command, this property or command should be in the externalCommands or externalFunctions, or perhaps in the externalProperties (which doesn't exist yet). If it were in the externalProperties, you'd know that it isn't in the engine and hence you'd be using the open source edition.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode