another 7.0 cd issue [message #60999] |
Mon, 30 June 2008 09:53 |
Wox
Messages: 184 Registered: August 2006
|
Senior Member |
|
|
Ok, so I'm trying IDL7.0. Thanks to this newsgroup I was prepared and
followed a course on Zen meditation before taking on the big 7.
Everything was going well until I tried to change the current
directory (with cd,'c:\...'), hoping it would stay like that we I
execute a widget app. I stripped the widget app (see below). If you
would compile this and run it, everything goes well, i.e. pressing the
button will print the path I set. However, if you try to make a
project out of it (with 1 file) and you would "build + run the
project", the path printed will not be the one I set.
Any ideas?
Wox
pro test_event,ev
cd,c=c
print,'Directory after xmanager: '+c
end
pro test
dir='c:\temp\'
base=WIDGET_BASE(MBAR=bar,/row,title='TEST:',scr_xsize=300,s cr_ysize=100)
button= widget_button(base,value='check '+dir+' ...')
cd,dir,c=c
print,'Initial directory: '+c
cd,c=c
print,'Set directory: '+c
WIDGET_CONTROL, base, /REALIZE
Xmanager,'test',base,/NO_BLOCK
end
|
|
|