Webvisu: Function on table

galexis
2021-06-15
2021-06-30
  • galexis - 2021-06-15

    Hi,
    I would like to use FUNCTION on column of table to display without "D#" a date. ("D#2021-06-15" => D#2021-06-15).

    FUNCTION Date_cut :STRING;
    VAR_INPUT
        in_Date: DATE;
    END_VAR
    
    Date_cut:= DELETE ( DATE_TO_STRING (in_Date) , 2 , 1 );
    

    I put it in variable of text

    Date_cut(my date of my array)
    

    on table, but I have somes errors: C0018 et C0032. Problem with TYPE_CLASS...
    Thanks for your help.

     
  • galexis - 2021-06-15

    With %t[dd:MM:yy]
    But in general, is it possible to use function on table ?

     
  • m.prestel - 2021-06-30

    Please attach a project if you want any help.

    Best regards,
    Marcel

     

Log in to post a comment.