-- In [email protected], "mark2atsafe" <[EMAIL PROTECTED]> wrote:
> You can access an environmental variable as a Macro in FME using
> 'squiggly' brackets - eg ${FME_MF_DIR} or ${ORACLE_HOME}
>
> I'm not sure if you can do that directly in a TCL script, but you
> could use an AttributeCreator to create an attribute from the Macro
In a Tcl script you can use the build-in global array "env":
global env
puts $env(HOME)
To check if the environment variable exists you could do
if [info exists env(TEMP)] { ... }
Harm Olthof
> (put the macro in the right hand field in the transformer settings
> instead of a value) then use that in the TCL
>
> J'esp�re que ceci r�pond � votre question.
>
> Mark
>
> Mark Ireland, Product Support Engineer
> Safe Software Inc. Surrey, BC, CANADA
> [EMAIL PROTECTED] http://www.safe.com
> Solutions for Spatial Data Translation, Distribution and Access
>
> --- In [email protected], "pyjoubert" <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I would like to position a variable of environment under Windows
and
> > read the value of this variable of environment in TCL by using
TCLCaller
> >
> > How to make ?
> >
> > Thank you
Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our
Professional Services team. Visit www.safe.com/services for details.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/fme/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/