Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Webvisu: Function on table

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

    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

    galexis - 2021-06-15

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

     
  • m.prestel

    m.prestel - 2021-06-30

    Please attach a project if you want any help.

    Best regards,
    Marcel

     

Log in to post a comment.