Cancel
Showing results for 
Search instead for 
Did you mean: 

Hide text Table

Pioneer
Pioneer

Hi!

 

I'm trying to hide a part of a text in a table but i don't know what method to use. I Want to keep the object in the table to use in another method but i also want to show this table in a report but a "clean" version

 

For exemple.

 

Image 1 Before and image 2 is after.

 

Capturar.JPG Capturar2.JPG

4 REPLIES

Re: Hide text Table

Phenom
Phenom

have you tried str_to_obj(table[1,1]).name    ?

Re: Hide text Table

Pioneer
Pioneer

Yes, it works. 

 

I will give you another exemple that i want to do.


I'm writing a tablefile using the EventController to show the MU entrance and exit. But i want to show only HH:MM: SS don't want to show the ".0000" i tryed to convert time to string but dont know how to hide the ".0000". Like the images 

 



---Entrance
@.createAttr ("entr","string");
@.entr:= time_to_str(EventController.simTime)
---- exit
.Models.Frame.Tabelecontrol[4,y+1] := @.entr;
.Models.Frame.Tabelecontrol[4,y+1] := @.time_to_str(EventController.simTime);

Capturar.JPG Capturar2.JPG

Re: Hide text Table

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Arthur,

 

just use the optional second argument of time_to_str and set it to true.

Regards,

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

Re: Hide text Table

Pioneer
Pioneer
Hello Ralf,

Tanks it's working.

Regards,

Arthur