Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Save an Application as a Class? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: [WE] Passing a listbox as a parameter - DynaPDF example
Next thread: WebListbox.SelectionChanged does not fire after DeleteAllRows when row(s) are selected before Delete


Re: Functions Library   -   Garth Hjelte
  Save an Application as a Class?   -   Jon Ogden
   Re: Save an Application as a Class?   -   Charles Yeomans
   Re: Save an Application as a Class?   -   Dennis Birch
   Re: Save an Application as a Class?   -   Norman Palardy
    Re: Save an Application as a Class?   -   Jon Ogden
     Re: Save an Application as a Class?   -   Quick Start Software
      Re: Save an Application as a Class?   -   Jon Ogden
   Re: Save an Application as a Class?   -   Andrew Keller
   Re: Save an Application as a Class?   -   Jon Ogden
    Re: Save an Application as a Class?   -   Quick Start Software
   Re: Save an Application as a Class?   -   Arnaud Nicolet
   Re: Save an Application as a Class?   -   Quick Start Software

Save an Application as a Class?
Date: 07.08.11 02:41 (Sat, 06 Aug 2011 20:41:48 -0500)
From: Jon Ogden
Hey all,

I've been working on a new feature for one of my applications. Because of the level of sophistication of this feature and what it needs to do, I've been working on this as its own application. It's easier to debug it and get everything the way that I want there first. Now, I want to integrate it into the application that will use this feature. Is there a way I can save the project as a class and then import it into the app in question?

What's the best way to do this?

Thanks,

Jon

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 17:32 (Sun, 7 Aug 2011 12:32:16 -0400)
From: Charles Yeomans

On Aug 7, 2011, at 12:20 PM, Jon Ogden wrote:

>
> On Aug 7, 2011, at 10:34 AM, Norman Palardy <<email address removed>> wrote:
>
>>> What's the best way to do this?
>>>
>> Make all the relevant bits eternal and then import those into your other app
>
> Yeah. I basically copied an pasted. Would be nice to be able to export everything all at one time as a single item. It's a pain to do it class by class.
>

Stick it all into a folder first.

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 17:26 (Sun, 7 Aug 2011 09:26:29 -0700)
From: Dennis Birch
On Sun, Aug 7, 2011 at 9:20 AM, Jon Ogden <<email address removed>> wrote:
>
> On Aug 7, 2011, at 10:34 AM, Norman Palardy <<email address removed>> wrote:
>
>>> What's the best way to do this?
>>>
>> Make all the relevant bits eternal and then import those into your other app
>
> Yeah. I basically copied an pasted. Would be nice to be able to export everything all at one time as a single item. It's a pain to do it class by class.

Throwing everything into a folder and then exporting that would be one
way to do that. You could also save your project in VCP format and
then drag those files from the Finder or Windows desktop into your
main project.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 16:34 (Sun, 7 Aug 2011 09:34:13 -0600)
From: Norman Palardy

On Aug 6, 2011, at 7:41 PM, Jon Ogden wrote:

> Hey all,
>
> I've been working on a new feature for one of my applications.
> Because of the level of sophistication of this feature and what it
> needs to do, I've been working on this as its own application. It's
> easier to debug it and get everything the way that I want there
> first. Now, I want to integrate it into the application that will
> use this feature. Is there a way I can save the project as a class
> and then import it into the app in question?

No

> What's the best way to do this?
>
Make all the relevant bits eternal and then import those into your
other app

Norman Palardy

Real World 2012, THE Real Studio Event of the year!
http://realsoftware.com/community/realworld.php

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 17:20 (Sun, 07 Aug 2011 11:20:54 -0500)
From: Jon Ogden


On Aug 7, 2011, at 10:34 AM, Norman Palardy <<email address removed>> wrote:

>> What's the best way to do this?
>>
> Make all the relevant bits eternal and then import those into your other app

Yeah. I basically copied an pasted. Would be nice to be able to export everything all at one time as a single item. It's a pain to do it class by class.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 08.08.11 00:36 (Sun, 07 Aug 2011 19:36:21 -0400)
From: Quick Start Software


On 8/7/2011 12:20 PM, Jon Ogden wrote:
> Would be nice to be able to export everything all at one time as a single item. It's a pain to do it class by class.

If you put all of your classes into a folder then you can export and import the entire folder.

Sincerely,
Jared
QuickStartSoftware.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 08.08.11 00:44 (Sun, 07 Aug 2011 18:44:58 -0500)
From: Jon Ogden
Forgot to try that :-o

But it's a great idea.

Sent from my iPhone

On Aug 7, 2011, at 6:36 PM, Quick Start Software <<email address removed>> wrote:

>
> On 8/7/2011 12:20 PM, Jon Ogden wrote:
>> Would be nice to be able to export everything all at one time as a single item. It's a pain to do it class by class.
>
> If you put all of your classes into a folder then you can export and import the entire folder.
>
> Sincerely,
> Jared
> QuickStartSoftware.com
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 04:57 (Sat, 6 Aug 2011 23:57:29 -0400)
From: Andrew Keller
On Aug 6, 2011, at 9:41 PM, Jon Ogden wrote:

> I've been working on a new feature for one of my applications. Because of the level of sophistication of this feature and what it needs to do, I've been working on this as its own application. It's easier to debug it and get everything the way that I want there first. Now, I want to integrate it into the application that will use this feature. Is there a way I can save the project as a class and then import it into the app in question?

No.

Even if you could, it wouldn't work, because you can't have two App classes in one project.

> What's the best way to do this?

Whatever you do, step one is to isolate the feature from its testing code.

Option A:

Make just the feature external (all of its components). For each of the projects that use the feature, import the feature as external items. This has the advantage that each project will get updates automatically, and each project can successfully write to the shared feature, but it has the disadvantage that each project must use the same version of the feature.

Option B:

For each of the projects that use the feature, copy and paste the feature from the IDE in a project that has it to the project that needs it. Folders in the IDE can make this a single operation. This has the advantage that different projects can use different versions of the feature, but it has the disadvantage that any modifications are internal and private to each project, so you must propagate changes manually.

Personally, I prefer option B for small projects. For large projects where version control is involved, I use option C: http://kellerfarm.com/life/rbvcp/

HTH
~ Andrew Keller

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 02:52 (Sat, 06 Aug 2011 20:52:19 -0500)
From: Jon Ogden
I know that. I'm talking about the whole thing. The app right now has a module, a couple of custom classes, windows, a couple custom controls, etc.

Is there a way I can export the whole thing easily, or do I have to do each one individually? Being able to have it all saved as a type of superclass would be nice…

On Aug 6, 2011, at 8:47 PM, Quick Start Software wrote:

> You can right click and externalize the class and then add it as an external item to your other projects. This will essentially create one copy of the class and then all of your projects can access the one copy (instead of copying the class into every project)
>
> Sincerely,
> Jared
> QuickStartSoftware.com
>
> On 8/6/2011 9:41 PM, Jon Ogden wrote:
>> Hey all,
>>
>> I've been working on a new feature for one of my applications. Because of the level of sophistication of this feature and what it needs to do, I've been working on this as its own application. It's easier to debug it and get everything the way that I want there first. Now, I want to integrate it into the application that will use this feature. Is there a way I can save the project as a class and then import it into the app in question?
>>
>> What's the best way to do this?
>>
>> Thanks,
>>
>> Jon
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 07:09 (Sun, 07 Aug 2011 02:09:10 -0400)
From: Quick Start Software
You may want to look at the option of creating your own "project template." Do do this you essentially save the .rbp file and place it in the "Project Templates" folder in the Real Studio folder
where the Real Studio application is installed. Then when you start Real Studio, you have the option to select a project template. Real Studio comes with a few project templates but you can add your
own too.

Hope this helps!

Sincerely,
Jared
QuickStartSoftware.com

On 8/6/2011 9:52 PM, Jon Ogden wrote:
> I know that. I'm talking about the whole thing. The app right now has a module, a couple of custom classes, windows, a couple custom controls, etc.
>
> Is there a way I can export the whole thing easily, or do I have to do each one individually? Being able to have it all saved as a type of superclass would be nice…
>
> On Aug 6, 2011, at 8:47 PM, Quick Start Software wrote:
>
>> You can right click and externalize the class and then add it as an external item to your other projects. This will essentially create one copy of the class and then all of your projects can access the one copy (instead of copying the class into every project)
>>
>> Sincerely,
>> Jared
>> QuickStartSoftware.com
>>
>> On 8/6/2011 9:41 PM, Jon Ogden wrote:
>>> Hey all,
>>>
>>> I've been working on a new feature for one of my applications. Because of the level of sophistication of this feature and what it needs to do, I've been working on this as its own application. It's easier to debug it and get everything the way that I want there first. Now, I want to integrate it into the application that will use this feature. Is there a way I can save the project as a class and then import it into the app in question?
>>>
>>> What's the best way to do this?
>>>
>>> Thanks,
>>>
>>> Jon
>>>
>>> _______________________________________________
>>> Unsubscribe or switch delivery mode:
>>> <http://www.realsoftware.com/support/listmanager/>
>>>
>>> Search the archives:
>>> <http://support.realsoftware.com/listarchives/lists.html>
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 02:49 (Sun, 07 Aug 2011 03:49:06 +0200)
From: Arnaud Nicolet
Le 7 août 11 à 3:41, Jon Ogden a écrit:

> Hey all,
>
> I've been working on a new feature for one of my applications.
> Because of the level of sophistication of this feature and what it
> needs to do, I've been working on this as its own application. It's
> easier to debug it and get everything the way that I want there
> first. Now, I want to integrate it into the application that will
> use this feature. Is there a way I can save the project as a class
> and then import it into the app in question?

I'd copy and paste the class from one project to another, so no file
has to be deleted afterwards. In the case of the App class, since
there's always one per project, you'll end up with having the pasted
one named "App1". Either use that one or copy and paste the relevant
methods/properties/etc. and delete App1.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Save an Application as a Class?
Date: 07.08.11 02:47 (Sat, 06 Aug 2011 21:47:16 -0400)
From: Quick Start Software
You can right click and externalize the class and then add it as an external item to your other projects. This will essentially create one copy of the class and then all of your projects can access
the one copy (instead of copying the class into every project)

Sincerely,
Jared
QuickStartSoftware.com

On 8/6/2011 9:41 PM, Jon Ogden wrote:
> Hey all,
>
> I've been working on a new feature for one of my applications. Because of the level of sophistication of this feature and what it needs to do, I've been working on this as its own application. It's easier to debug it and get everything the way that I want there first. Now, I want to integrate it into the application that will use this feature. Is there a way I can save the project as a class and then import it into the app in question?
>
> What's the best way to do this?
>
> Thanks,
>
> Jon
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>