Cancel
Showing results for 
Search instead for 
Did you mean: 

SetDataType

Pioneer
Pioneer

I am using the {tablepath}.SetDataType command to build a table with SimTalk.  According to the help file the range {1,*}..{*,*} should set the complete table to the datatype designated.  But it is not working at all.

 

Below is my line of code:

{TablePath}.setDataType({1,*}..{*,*},"Integer")

 However, all columns remain a string.

 

Please advise.  what am I doing wrong?

4 REPLIES 4

Re: SetDataType

Phenom
Phenom

You have set an infinite value for the columns

 

If you set a column boundary it works

 

For example  {1,*}..{20,*}  works

Re: SetDataType

Pioneer
Pioneer

Thanks for the reponse.  You are right.  This works.  I am guessing there is no way to set the 'entire set of columns - the complete table' toa specific data type?  I will just use a very large number.  Thanks.

Re: SetDataType

Phenom
Phenom

To set the datatype of the complete tableFile, try the table attribute "dataType" :

 

tableFile.dataType := "integer"

Re: SetDataType

Pioneer
Pioneer

That worked.  It's frustrating when a method works for one command and not another.  This happens alot in SimTalk.  Using {1,0}..{*,0} works just fine with the table.delete command.