marsd,
thanks marsd this works fine in fact I did not need the 'file exists' bit I just need to be able to make the proc skip over looking at the cdrom, as the directory in question will always reside on a hardrive but i could not guaruntee that it will always be on the HOME or SystemDrive hence...
I am trying to create a procedure that searches the PC to find out what Drives [logical] exist on a system.
This is in a windows environment.
The reason is to be able to search for a specific directory that should exist on the PC.
So using :
set volumes [file volume]
regsub {\s} $volumes {}...
Recently I was attempting to create a frame of buttons created with jpeg images that could be used to invoke different pages into a main viewer frame. The problem was as a button was clicked and the page loaded the frame holding the buttons dissappeared as the new page was loaded.
The solution...
Thanks guys, your points were most welcome and I have now solved the problem. It turned out to be (partially) a question of syntax. Below is the code line used.
<a href="#" onClick="parent.Page_Viewer.location='SDMC_Home.html'; self.location='SDMC_menu.html'" ><img...
ne4x4
Yep, the sample code you show is exactly as I have it currently structured.
The Menu frame sits along the top taking up 10% of the view area the remainder is a frame called page_viewer.
The switching between these pages works correctly, its just that in the process the menu frame...
I am developing a web that is split into 2 frames in IE 5.0. The top frame holds a set of navigation buttons that will load the relevant page into the second frame.
The buttons are src jpg images and the code uses the onclick function to load the page.
The problem is after initial loading of the...
This tip is passed on from attempting to solve a problem in formatting a string of characters by eliminating control and field key characters.
Using [string map] function enables one to translate a range of odd characters in a string used to separate fields.
string map {ª _ ô _ ² _ Ø _ > _}...
Solved the problem by using
fconfigure 'fileID' -eofchar { }
this now allows the complete string to be taken for processing.
Thanks marsd for pointing me in the right direction.
hija
Thanks for the hint marsd, it looks as if this is it, now I need a way of overiding it, Im going to try the string map function to change it in advance of processing
hija
Additional Information...
I have done some more investigation into this control character and it appears to be a End of Medium 'EM' ASCII Char 25(decimal), it is this one I cannot get Tcl to ignore in the string being read from a file.
hija
I am in the process of writing a Tcl script that processes lines from a file and extracts specific information to format in a readable manner.
Some of the files contain hidden control characters or a single quote mark or a single brace. These need to be ignored so the string can be assigned to a...
How do I get one tcl program to invoke a second tcl program passing the the program some variable values generated in the first.
This might seem a strange thing to do.
But the intent is to be able to write testdriver scripts (the first program) to check the performance of the second program...
I need to find out how to pass a set of attribute values
collected through a set of wizard frames and text boxes to another tcl program that will create a text file with these values organised into a readable format. The file is then to be checked in to eMatrix assigned to the newly created...
I tried this bit of code in WISH
and got <li>n<li> where n is a number 1 gave the 'value'argument. Is this what you expect?
I realise this is to modify or create web content
can you provide a sample output of what your getting?
I am relatively new to Tcl/Tk starting with tcl 8.2 and wish.
I have recently down loaded Tcl/Tk 8.4.1 and proceeded to do a build from the source files, after modifiying the buildall.vc scripts to define the install directory and tcl directory.
The Tcl build was successful with no errors and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.