[FR] [EN]Re: Getting the type code of a file under OSX

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sat Jul 30 11:33:59 EDT 2005


Hi Dom,

Tu peux faire les deux mais ce n'est pas la même chose.
You can do both but it's not the same.

Quand les variables sont déclarées en tête du script, leurs valeurs  
sont alors accessibles par toutes les procédures du script.
When variables are declared outside the handlers their values are  
available to all handlers in the script.

Quand elles sont déclarées à l'intérieur d'une procédure, leur valeur  
n'existe que pour la procédure considérée.
When they are declared inside a handler, their values are only  
available for this handler.

Le 30 juil. 05 à 17:24, Dom a écrit :

> Eric Chatonet <eric.chatonet at sosmartsoftware.com> wrote:
>
>
>> function CreatorAndType pFilePath
>>    local tDefaultFolder,tFile,tCreatorType
>>
>
> oui c'est pas mal du tout !
> very nice, indeed!
>
> a propos de déclaration des "locals" : n'est-il pas préférable de les
> déclarer en-tête du script du controle, en dehors des handlers ?
> about "locals" statement: is it preferable to place it in the "header"
> of the control script, outside of any handler?
>
> -- 
> Revolutionario (not so much, indeed)


Best Regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list