Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. geezer34

    manipulating strings

    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!
  2. geezer34

    manipulating strings

    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...
  3. geezer34

    reading files

    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
  4. geezer34

    reading files

    Hi guys I'm reading a flat file that has the following layout 391 ( 4 391 4 ) ( 40 1 40 ) ( 4\0 0\0 4\0 ) ( 0\4 0\0 0\4 ) OWNED offset 767932 next dim iter 1 392 ( 44 0 4 ) ( 40 1 40 ) ( 0\0 0\0 4\0 ) ( 4\4 0\0 0\4 ) OWNED offset 614700 I want to be able to...
  5. geezer34

    Changing file extensions

    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
  6. geezer34

    Changing file extensions

    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.
  7. geezer34

    Filenames

    Thanks for the pointers guys
  8. geezer34

    Filenames

    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...
  9. geezer34

    manipulating binary data

    OK got something going here. Basicaly I created a load of UDTs and then used these within another UDT!! Seems to work OK. Thanks for your pointer
  10. geezer34

    manipulating binary data

    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...
  11. geezer34

    manipulating binary data

    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...

Part and Inventory Search

Back
Top