hmm i have tryed to use it as a var but get always errors just curious how do i use sutch var ?? i mean it seems it isn't used like php vars or mirc vars or ... is there anything i need to define or a dll i need to load or something .. ?
The variables listed on that page are just regular global variables. There are two ways to use global variables inside a proc. One is to use the "global" command and the other is to start the variable with ::.
global tcl_platform
set blah $tcl_platform(hello)
or
set blah $::tcl_platform(hello)
both codes do the same thing.
In a previous question you asked: or do i need to do like "$::tcl platfrom(var)". I hope it was a typo, because the name of the array variable is tcl_platform, not "tcl platfrom". There is an underscore, not a space. And also realize that "var" has to be a valid variable listed on the help page, e.g. byteOrder, osVersion, etc And yes, capitalization is important.
In your last question you asked about $::env(varname). That works, as long as varname is a valid entry in the array. Use the names on the help page, with the exact spelling and capitalization they provide. Even then, not all of them may be defined. For instance if you're on linux, APPLE_M_FOLDER probably will not be defined heh. So first check to see if it exists using the "info exists" command.
oh yes indeed i got the platfrom thingy to work didn't have to put it in global tho just having some trouble with env i tought it would be like that i tryed system folder on a windows machine still trying tho. think i am doing something wrong syntax = same as the platfrom thingy ??
is there like a way i can show cpu ram ... disk size