View Full Version : Passing between 2 AMS projects
synistics
10-13-2007, 06:08 PM
I remember seeing a discussion about passing data from AMS porject to another.
I have searched in vain, so if anyone remembers the thread, could you point me to it.
I want to pass data from one list box in Project A to a listbox in Project B.
TIA
Synistics
KARLOSTHG
10-13-2007, 08:04 PM
you can try the write a registry key or text file from the first application and read the key or text in the other application
sorry for my english żis good, middle, or bad?:rolleyes
mindstitchdr
10-13-2007, 08:57 PM
Is this what you are looking for:
http://www.indigorose.com/forums/showthread.php?t=16037&highlight=send+data
RizlaUK
10-14-2007, 02:59 AM
yeah, i was working on a dll to do such, but i cant get it to work with ams, i can get 2 PB apps to "talk" to each other but have had no luck with ams so far
FYI, i wouldn't relay on using the users registry for communication of the apps, there will always be a situation where this will fail, instead i would use a ini file or sqlite database placed in a location where the dam vista UAC wont jack it.....just my opinion :p
synistics
10-14-2007, 10:43 PM
that was the thread.
I am going to give it a try when I get back to the city. If it does not work, I will need to try the SQLite method, which can be done, but I am trying to avoid that.
All else fails, I am pulling data from an outside source, it means the user will loose what they are listening to and need to restart.
Thanks again
azmanar
10-15-2007, 05:13 AM
Hi,
You can also use textfile created on the desktop or tempfolder, which Project (1) can create and Project (2) can collect data and delete immediately after that.
azmanar
10-15-2007, 12:40 PM
Hi,
I've updated my examples (http://azman.info/ams) page with what I said above:
At the Miscellaneous Example section, look for:
Share ListBox Text & Data between 2 AMS Projects
- You need to download 2 APZ Files : ShareData1 | ShareData2
- Add/edit/delete items into a ListBox in ShareData1 Project
- Write the ListBox items into a Text File on the Desktop from ShareData1 Project
- Load the Text File text and data into a ListBox on ShareData2 Project
- Load Text File text and data uses Delimited Function
The example above uses Text File written on HDD as a bridge. You can change from Desktop to TempFolder.
Worm's example does not need to write into HDD. It passes data between 2 Projects directly.
melblanc
10-15-2007, 06:01 PM
Funny, I was looking through for something like this... how would it be possible to pass from one project to another using SQLite??
RizlaUK
10-15-2007, 06:26 PM
use the same principle as azmanar's example only useing a sql db instead of a text file, you have both apps open the same db and they sharing data
melblanc
10-15-2007, 06:28 PM
I wish I was a little more clever sometimes... :/
Thanks :D
azmanar
10-16-2007, 07:18 AM
Hi,
We're both very lucky to be here, Mel.
Everyone is in the process of getting more clever each day by learning from each other in this very IR forum.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.