Multi-Module Application

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rlitchfield
Posts: 4
Joined: Tue Apr 06, 2010 4:13 pm

Multi-Module Application

Post by rlitchfield » Tue Apr 06, 2010 4:20 pm

I am extremely new to RunRev coming from RealBasic, so please keep that in mind when answering my question. :)

Situation:
I would like to build a program that allows the users to download modules only as they need them. For example, I would provide an initial application (main menu, licensing, etc) and then the user would download the module they needed.

My questions:
1) Am I able to build a multi-module type of application in Revolution?
2) If so, can I have the module's "self install" so that they are accessible to the initial application without having to repackage the whole thing?

For the record, I am not able to do this in RealBasic....so doing this in RunRev would be a bonus.

rlitchfield

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multi-Module Application

Post by Klaus » Tue Apr 06, 2010 5:24 pm

Hi rlitchfield,

see below...
Last edited by Klaus on Tue Apr 06, 2010 5:28 pm, edited 1 time in total.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multi-Module Application

Post by Klaus » Tue Apr 06, 2010 5:27 pm

Hi rlitchfield,
rlitchfield wrote:1) Am I able to build a multi-module type of application in Revolution?
Yes.
rlitchfield wrote:2) If so, can I have the module's "self install" so that they are accessible to the initial application without having to repackage the whole thing?
Yes, you can simply "load" a stack (= a module) with a one-liner:
...
go stack url("http://www.yourserver.com/subfolder/module666.rev")
...

Then you can simply save that stack into a folder in the users "preferences" for later use and that's it. No need to install or whatever...

Drop a line if you need more or specific info.


Best from germany

Klaus

rlitchfield
Posts: 4
Joined: Tue Apr 06, 2010 4:13 pm

Re: Multi-Module Application

Post by rlitchfield » Tue Apr 06, 2010 7:00 pm

Klaus wrote:Hi rlitchfield,
...
go stack url("http://www.yourserver.com/subfolder/module666.rev")
...

Then you can simply save that stack into a folder in the users "preferences" for later use and that's it. No need to install or whatever...
Seriously...that's it?? WOW. Ok...time to get started here and learn this new language. Thank you for the quick help, though I'm sure to stumble upon more questions as I rebuild my app in RunRev. :)

rlitchfield

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: Multi-Module Application

Post by RRobert » Tue Apr 06, 2010 7:31 pm

If I may ask why did you move from RB to Rev? (I'm just curious)

Robert

rlitchfield
Posts: 4
Joined: Tue Apr 06, 2010 4:13 pm

Re: Multi-Module Application

Post by rlitchfield » Tue Apr 06, 2010 8:01 pm

RRobert wrote:If I may ask why did you move from RB to Rev? (I'm just curious)

Robert
I am originally a VB.net programmer, but wanted the option of cross-platform for a project I'm working on. I started out with RealBasic which was familiar enough considering my background. While it is a really good environment, I have run into a few limitations, one of which this post was about.

I was attracted to Rev due to the advertised (and from what I could find from reviews) regarding the quick development time. As well, the option of running my app on mobile devices with the core intact (interface would be different), was very attractive.

I'm hoping that the learning curve for Rev will be rather small so I can become productive as quickly as possible. I'm only just getting started and I am finding the syntax strange....though I will stick with it for now as the benefits seem to outweigh the pain.

rlitchfield

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: Multi-Module Application

Post by RRobert » Tue Apr 06, 2010 9:19 pm

Another VB programmer :). You should consider buying tRev it cost $60 and you will get some kind of auto-completion which is pretty nice and helpful if you are not so familiar with the syntax at the start. Its not at the Visual Studio level but its better than the default editor imo.

The User Guide and the community is nice and friendly. You also find many infos on the mailing list and lessons.runrev.com. If you think the dictionary is clumsy you could also use docs.runrev.com.

Some people here come from Hypercard, MetaCard, ... and they have a different viewpoint towards Revolution. For me Revolution is a scripting engine which is available for the three major platforms with an own GUI toolkit. The executable is the engine with your script attached to it (encrypted if your wish). Stacks = Windows, Cards = Layers, Messages = Events, Commands = Procedures, Functions = Functions and so on ... You have a limited set of controls but its very easy to create your own (put the basic controls together, group them, write the code for the messages ...). You could utilize Applescript and VbScript by using the do command and you could extend Revolution by libraries (DLLs) which are called Externals, in case you need to do platform specific things which are not covered by the default range of functions and which could not handle by shell calls.

PS: Revolution Message Path

Robert

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Multi-Module Application

Post by jmburnod » Thu Apr 08, 2010 11:10 am

Hi All,

I tested

Code: Select all

go stack url("http://www.yourserver.com/subfolder/module666.rev")
it work fine from a stack or a standalone Mac

but not from a revlet (only tested with firefox 5.0 on powerbook G4 10.4.2)

Jean-Marc
https://alternatic.ch

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multi-Module Application

Post by Klaus » Thu Apr 08, 2010 11:22 am

Bonjour Jean-Marc,

displaying multiple stacks in a Revlet is still unsupported.
And I am not sure if this needs "LIBURL", which is also not (yet) available in a Revlet.

Come on folks, the webplugin is still in its very early BETA stage! 8)

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Multi-Module Application

Post by BvG » Thu Apr 08, 2010 12:09 pm

Revweb is not beta, it's part of 4.0 and officially released.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multi-Module Application

Post by Klaus » Thu Apr 08, 2010 12:18 pm

BvG wrote:Revweb is not beta, it's part of 4.0 and officially released.
So was Rev version 1 :D

For us RevWeb is not usable as it should be/was promised!

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Multi-Module Application

Post by BvG » Thu Apr 08, 2010 12:22 pm

Ah you where joking, I assumed you didn't know the true, sad state of affairs :)
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multi-Module Application

Post by Klaus » Thu Apr 08, 2010 12:39 pm

:)

Post Reply