OK just had a brain wave
format $.5d $count (where count in updated by incr count)
I also note 'format $X.5d $count' seems to work. where x is an integer value.
Could somebody explain in english whats going on here please.
Thanks!
Hi guys,
This is going to be soo obvious when pointed out to me but as yet I've not cracked this....
Background I have an script that will cause an application to create a jpg image. What I need to do is to get a sequential number as the image name *but* it has to be in the format of xxxxx ie...
Just had a thought as I hit the submit button...
I can do what I want whith the following:
scan $lineBuffer "%s" next
if { $next == "next" } {
echo "$lineBuffer"
#we have a line we done need
gets $inputFile lineBuffer
}
Is there a better way to do what I want?
Ta
I have just found that I can use
file rename $i $i.jpg
however this gives me something along the line of
test.JPG.jpg.
Any way that I can just end up with test.jpg??
Thanks
Hi Guys
I have a load of file that have a .JPG extension and I need to convert them to .jpg.
Know I need to loop through the file but dont know how to change the file name. Heres my basic code to date:
foreach i [glob *.JPG] {
}
Hope you can give me some pointers.
Hi guys,
Done some real basic things in TCL and have now want to do something slighty harder.
I'm cd'ing to a directory that I know has a number of files of a certain type eg jpgs. These have a format similar to the following:
picture01.jpg
picture02.jpg
...
What I want to do is to get hold...
Ok thanks for that.
Query re UDTs as I've got an error come up saying that LSET only allowed on strings and user defined data types...
Got the following code:
Private Type Test
a As String
b As Long
End Type
Dim record() As Test
Private Type My4Bytes
b1 As Byte
b2 As Byte
b3...
I'm a novice VB programmer and am having some issues with binary files (which I've never touched before) and I was hoping you may be able to help with...
I've read a binary file into a byte array and now want to pull out data from this.
I know the following about my format:
- byte position 0...
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.