| |
| |
| |
|
Page: 1 2 3
Comments:
<0> so those 3 line i add....are working <0> but insid the proc <0> are no more getting the env value <0> couse when i run the script...i am sent to put2 <0> this means that env do not read the right value... <1> set list "1 2 3" <1> set var(2) "exist" <1> foreach x {[split $list] { if {[info exists var($x)]} { puts "exist" } else { puts "false" } } <2> anc: #899 (173 clicks) Tcl: 1 2 3 <1> set var(2) "exist" <1> ;set var(2) "exist" <2> anc: #902 (314 clicks) Tcl error: can't set "var(2)": variable isn't array <1> ;set var($list) "exist" <2> anc: #903 (329 clicks) Tcl error: can't set "var(1 2 3)": variable isn't array <1> oh well <0> $env(RENDERLOCATION)
<1> foreach x {[split $list] { if {[info exists var($x)]} { puts "exist" } else { puts "false" } } <0> puts $env(RENDERLOCATION) <1> would check all variables if it exists <0> i m ust go <0> see u later <3> ;return a <2> Gotisch: #29 (161 clicks) Tcl: a <3> ;botisop #tcl <2> Gotisch: #30 (2334 clicks) Tcl error: invalid command name "botisop" <3> ;isop <2> Gotisch: #31 (406 clicks) Tcl error: wrong # args: should be "isop nick ?channel?" <3> ;isop zanpaktou #tcl <2> Gotisch: #32 (234 clicks) Tcl: 1 <3> ;isop zanpaktou #eggrcl <2> Gotisch: #33 (418 clicks) Tcl error: illegal channel: #eggrcl <3> ;isop zanpaktou #eggtcl <2> Gotisch: #34 (229 clicks) Tcl: 1 <4> ;return b <2> chilla: #36 (133 clicks) Tcl: b <4> ;return exec {uname} <2> chilla: #40 (158 clicks) Tcl: <5> zanpaktou exec uname <2> <3.0ms> Linux <4> zanpaktou exec uname <6> ok i can play another bit <6> so <6> http://www.rafb.net/paste/results/gB1Q2O59.html <6> in the script i am modifying i cannot get the result i want <6> the error is that i add an if statment that should check the existence of an environment variable <6> if the variable exist then i wanna start my widnow.. <6> ptherwise if the var do not exist i have a window that tell me to add the variable <6> quiet easy <6> the real reason is that i do not exaclty undestand how to debug in tcl <6> where do i have to run my script? <6> in a console? <6> is there a fast way? <6> each tim ei have to load and execute the script in whish <6> is there any1? <6> is there a good way to debug? <6> how do i run the script... <6> i run it...but i wanna see a console window... <6> where i can see something that return my check <6> while testin <6> axl <6> are u there? <7> what you want? <6> i am trying to find a good way to debug <6> couse i am confused! <7> wish? <6> in window... <6> if i do tclsh <6> i get a shell <6> with whish i should get the return of my scirpt in the console... <6> but i cannot get wish to wirk in D:\ <6> i have to do a d: <6> but in the console is not taken as command <6> then i have a script <6> i'll show u <7> k <6> http://www.rafb.net/paste/results/gB1Q2O59.html <6> ok it is not complete...couse is quet long
<6> u will see on line 19 <6> i am trying to do an env variable check <6> so that if that var is set in win... <6> do this... <6> if is not set create a window that tell me to create that var...that is all...for now... <6> and i have big problem <6> http://www.rafb.net/paste/results/wjuZ7235.html <6> ok this one is the best i can do with my logic mind <6> ;D <6> if u wanna give a look... <6> if u prefer i can paste all the script...so that u can see it working <6> i m doins a if{[info exixt env(RENDERLOCATION)]}{ <6> and it seems that this env(RENDERLOCATION) is not read... <8> make sure its global <6> ok this is a good ideas... <6> so that i hjave to declare it as <6> global var env(RENDERLOCATION) <6> and outside of the proc main()? <8> uh no <8> "global env" inside proc main <8> or $::env(blah) <8> man global <6> if {[info exists $env(RATTREE)]} { <6> puts "ok la variabile c'" <6> } else { <6> puts "inserire la variabile di sistema RATTREE" <6> } <6> why this in a tcl script do not work then <6> it is becouse of $ <6> ok <6> how do i can go in D...where i have my tcl project via console? <6> ok <6> solved <6> solved nothing... <6> **** <6> :) <6> if {[info exists env(RENDERLOCATION)]} { <6> puts "ok la variabile c'" <6> } else { <6> puts "inserire la variabile di sistema RENDERLOCATION" <6> } <2> tikal: #109 (stdout) inserire la variabile di sistema RENDERLOCATION <6> already done <6> this one is working... <6> but inside the script no more <3> :: <6> i have to use the :: <6> ? <6> http://www.rafb.net/paste/results/e1hg6P88.html <3> global env <6> allright <6> i show u <6> this time it is working <6> sorry my stressing help request:) <6> i had to use those :: <6> http://www.rafb.net/paste/results/fkYfbN12.html <6> and not to declare global <6> but that :: stand for global_? <6> i do a help research <3> it was global env <3> and not global env(whatever) <3> just read up global <3> since rock told you exactly the same thing already <6> yeah....but it is a weird syntax... <6> so ....putting ::env(RENDERLOCATION) <6> is like putting global env <6> before that if <6> i was reading now about namespaces... <6> it like if inside the main proc...i am in another namespace? <6> so that to link to the global namespace i cen use the ::? <3> www.tcl.tk <6> :) <6> i have a book <6> ;)
Return to
#tcl or Go to some related
logs:
#politics sinnistar torrents
cynosual actionscript faking 3d #beginner #politics #stocks #delphi #politics assmunchers
|
|