04-04-2016 10:21 AM
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.
Solved! Go to Solution.
04-04-2016 11:23 AM
have you tried str_to_obj(table[1,1]).name ?
04-04-2016 12:25 PM - edited 04-04-2016 12:26 PM
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);
04-04-2016 12:32 PM - edited 04-04-2016 12:32 PM
Hello Arthur,
just use the optional second argument of time_to_str and set it to true.
04-04-2016 12:47 PM