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

    opening a tcl file from another ?

    i have now been working on the project non stop for 12hours today, started at 7am this morning. I think i will wait till tomorrow before trying out your suggestions Thanks very much I shall let you know how i get on Cheers Steve
  2. zskater

    opening a tcl file from another ?

    If i have 2 files eg. test1.tcl and test2.tcl and i want a button in test1 to run test2.tcl what do i need to write in test1.tcl I have been trying -command {source test2.tcl} but always get the message could not read file "test2.tcl" : no such file or directory...
  3. zskater

    variable problem (i might just be THICK )

    Its ok I got it working now Thanks very much for your help perfect advice again !!! Cheers Steve
  4. zskater

    variable problem (i might just be THICK )

    Could you please post your code so I could study it and work out what I am doing wrong Thanks Steve
  5. zskater

    variable problem (i might just be THICK )

    when a button is pressed it must remember what the 2 variables were at the time they were created
  6. zskater

    variable problem (i might just be THICK )

    startcell is a procedure So when i use -command [startCell $celltype $no_of_cells] or: -command [list [startCell $celltype $no_of_cells]] i get an error: invalid command name startCell So i need to do it some other way
  7. zskater

    variable problem (i might just be THICK )

    I have tried the different ways you have suggested but the final value of the variable is still what i am getting I tried -command "startCell $celltype $no_of_cells" -command startCell "$celltype $no_of_cells" -command {startCell "$celltype $no_of_cells"} -command...
  8. zskater

    variable problem (i might just be THICK )

    When the window for our drawing tool loads up it accesses our database through C functions to find the names of the buttons and there drop down menu names that we want displayed on the screen ########################################################### proc pulldownmenu {} { global celltype...
  9. zskater

    passing arrays

    if i have an array like array set Cellinfo { type 1 width 80 height 120 cost 50 color #D60000 } and i want to call a procedure and pass it the array name so the procedure can perform calculations on the data in the array eg. startCell Cellinfo proc startCell { } { upvar } i...
  10. zskater

    Splitting a string

    when setting the variable testVar to the following expression set testVar [eval .c coords $Move(utag)] It returns a string containing the co ordinates of the rectangle that has been selected on the canvas. eg. 80.0 140.0 160.0 260.0 How would i then split that variable up into the four...
  11. zskater

    list of array of records

    the first language i learnt was Pascal, I was thinking of the work i had done with that , i sure you could build one in it obviously not in tcl though thanks for the links cheers steve
  12. zskater

    list of array of records

    i am reading my tcl book at the moment and having difficulty getting my head around how to build a list that contains an array of records and then being able to populate the arrays with data does anyone have any example code that might make things clearer for me Cheers Steve
  13. zskater

    cant understand procedure

    Is the id a single integer or is a list of some sort ?
  14. zskater

    cant understand procedure

    The following code is code that a member of my team passed to me and i have modified for our project. I understand everything apart how the utag procedure works and in proc makeHorse i dont understand what information is contained within the var set Cell(id) / ....... I know that every cell i...
  15. zskater

    snap to grid ?

    Once again thanks very much for your help, away to try some stuff out with my program. Its been difficult learning tcl on my own in one month and designing this for my university team project,tcl is deffinetly something I want to continue with, does your company work in the UK or just the US ...
  16. zskater

    snap to grid ?

    I am designing a drawing package for my uni project At the moment i have a scrollable canvas with a grid on it I have buttons that when pressed i can drop a rectangular object on to the canvas where my cursor is What i would now like to do is include some code to get the rectangles to line up...
  17. zskater

    I am half way through my 3rd year s

    Thanks very much for your reply, I am working on it trying to adapt it for our program Cheers Steve
  18. zskater

    I am half way through my 3rd year s

    I am half way through my 3rd year software enginering project at uni ,we are now into the implemetation stage. None of our team have ever used tcl/tk before so we are having a lot of trouble. What I need to know can be simplified to the following when I click on a button that I have already...
  19. zskater

    user names

    my problem is I cant find how to access the users name who created each file in a directory I know using ls -l can tell you this but Im not accessing it from the command line For finding the size of the files and the times they were last modified I have been using stbuf.st_size and...
  20. zskater

    Help with C in UNIX environment

    I have almost finished writting this now , my problem is I cant find how to access the users name who created each file in a directory I know using ls -l can tell you this but Im not accessing it from the command line For finding the size of the files and the times they were last modified I...

Part and Inventory Search

Back
Top