🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

how to set and read two values in one variable using TCl?

User: "sanket_patil"
Altair Community Member
Updated by sanket_patil

how to set and read two values in one variable using TCl?

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Hi Sanket,

     

    You can use TCL list. Do elaborate your requirement. 

    User: "sanket_patil"
    Altair Community Member
    OP
    Updated by sanket_patil

    I want to read a value from excel sheet. so i was thinking to set  ids for 'Row' and 'Column' and that will hepl me to read that cell.

     

    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    TCL array or dictionary should be ideal. 

     array set myarray [list]  set myarray(0,1) 'data1';  set myarray(0,2) 'data2';

     

    User: "sanket_patil"
    Altair Community Member
    OP
    Updated by sanket_patil

    I have row index and column index. using that i want to read cell. after that if condition is false row index should increment and check for next rows also.And if condition is true it should give me some output. Can ypu please help in for this?

    Thanks.

    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Try setting up the array like this:

     set rowindex 0;  set columnindex 0;  set myarray($rowindex,$columnindex) 'data1';  incr rowindex;