version question

Jan Schenkel janschenkel at yahoo.com
Wed Oct 8 14:28:02 EDT 2003


--- Stephen Messimer <steve at messimercomputing.com>
wrote:
> Hi all,
> 
> I just downloaded 2.1 and I'm adding a statement to
> the preopenstack 
> handler that checks for the version of Rev.
> If it is >= 2.1 then it sets the decorations to
> metal if < 2.1 it 
> leaves the decorations alone.
> 
> here are the statements concerned
> on preOpenStack
> -- other stuff
>    if the version >= 2.1 then
>      set the metal of this stack to true
>    else
>    end if
> --other stuff	
> end preOpenStack
> 
> So I add this to my stack save and relaunch and
> nothing happens?
> 
> The statements look OK.  so I open the msgbox and
> type "put the 
> version" and hit OK and what yo my wondering eyes
> should appear but 
> 2.5.1???
> 
> What gives? Is this the metacard version or what.  I
> thought that the 
> version function should give me the current Rev
> version number.
> 
> Regards.
> 
> Steve
> 

Hi Steve,

Check the global 'gRevAppVersion' ; while your in the
IDE, 'the version' returns the MetaCard version ; but
I seem to recall from my HyperCard days, that it would
actually return the version of the app in standalones.
Not sure if that applies to MC/Rev, though.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



More information about the use-livecode mailing list