Cancel
Showing results for 
Search instead for 
Did you mean: 

problem table (integer)

Pioneer
Pioneer

Hi,

 

I have a little problem with my table. I wrote a table to give my moveable objects an randomly attribute (integer). But they don't change to the drains. Before, I gave them a string and averything worked well.

The software talks to me: "unacceptable data type: "string" or compatible data type expected."

I gave them a intiger, because I want to make a query with the intiger number.

Could anyone help me?

 

Thank you and best regards

2 REPLIES

Re: problem table (integer)

Siemens Phenom Siemens Phenom
Siemens Phenom

I do not understand what you mean with table? Do you mean the switch-statement?

It seems that the user-defined attribute Zieletage is of data type integer. Then you need to define cases with integer values:

switch @.Inhalt.Zieletage
case 1
    -- do something
end

 

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: problem table (integer)

Pioneer
Pioneer

Hi,

 

tank you!

Now it works.

If I have an integer, then case 1

If I have a string, then case "1"

 

Best regads