Beginners global variable pb

Benoit Leraillez leraillezB at netinfo.fr
Thu Feb 19 12:33:27 EST 2004


  Hi,


  I'm a beginner with Revolution (used other things in the past for
interface dev) but decided to use it since it corresponds exactly to what I
need for a cross-platform product prototype. My code maybe not the finest or
the most elegant but it basically does what it is supposed to do up to
now ;-)

  Now here is the problem I'm up to:

- The first card let's the user select the language interface for the rest
  of the stack. I know how to change on the fly the texts on that card to
  the user's selection from the scrolling list field. But I haven't found
  a way to store that selection so that every text field on every card
  displays text in the correct language (LanguageChoice is a global variable
  defined in the stack script in open stack and modified in the language
  selection script).

  Since I defined the variable as global up in the stack I don't understand
why it doesn't apply to every card and field. Maybe there is another way to
do this?

  (On top of that the ideal for me would be to have a hidden card containing
a table where each column would be a language and each row a field's content
since I could then keep simpler code in the text fields and probably import
and export the translations to work on it elsewhere than in Revolution.
First I've got to figure out how to "put content of cell
("LanguageChoice",3) of field "FullText" of card "Translation" into field
"Headline"" but I think I'll try to figure that out on my own before coming
here again ;-)


  TIA for any help.

  
P.S. Oh! Just one more thing, is there a way to have an image put in such
away that it appears in every cards at the same place when you create a new
card? And if you modify that image you don't have to copy and paste hundreds
of times? It ain't a priority but it would be cool ;-)

-- 
Benoît Leraillez

Nous n'avons pas les moyens d'acheter bon marché.



More information about the use-livecode mailing list