Are "global" container existing ?

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
Pascal
Posts: 19
Joined: Sat Jul 10, 2010 2:06 pm
Contact:

Are "global" container existing ?

Post by Pascal » Mon Jul 12, 2010 2:03 pm

Hello,

In FMPro, you can have fields containing the same value in the whole database.
Is there such a thing in Revolution ?

Thanks.
Pascal (French, sorry for the way I write)
RevEnterprise 4.5.0 dp3 OSX 10.4.11

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Are "global" container existing ?

Post by dunbarx » Mon Jul 12, 2010 2:41 pm

Fields can store any amount of data, if that is what you are asking. How that data is parsed is a question, since the field will simply contain all the data as a whole.

If you had "XXX" & tab & "YYY" & return in your field, you can use the itemDelimiter property to separate the individual terms. In this example the data would format correctly in, say, an excel spreadsheet.

Craig Newman

Pascal
Posts: 19
Joined: Sat Jul 10, 2010 2:06 pm
Contact:

Re: Are "global" container existing ?

Post by Pascal » Mon Jul 12, 2010 8:53 pm

Sorry,

I think I did not formulate my question the right way.
I try another way : How do I manage to create a container (field) whose value is the same on all the cards of the stack ? And if you change its value, the value changes on all cards.

Thanks
Pascal (French, sorry for the way I write)
RevEnterprise 4.5.0 dp3 OSX 10.4.11

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Are "global" container existing ?

Post by mwieder » Mon Jul 12, 2010 10:23 pm

one way:

create a field
set its sharedText to true
group the field
set the group's backgroundBehavior bit to true
now when you create a new card that field is there.

another way:

global gMyGlobalData
put SomeStuff into gMyGlobalData
put gMyGlobalDatainto field "xyz"

Pascal
Posts: 19
Joined: Sat Jul 10, 2010 2:06 pm
Contact:

Re: Are "global" container existing ?

Post by Pascal » Tue Jul 13, 2010 7:34 am

Great,

I did not knew the shared text property.
Everything works fine.

Thanks
Pascal (French, sorry for the way I write)
RevEnterprise 4.5.0 dp3 OSX 10.4.11

Post Reply