Hst2txt

Hi I need to extract evry day the trend history in a csv file with a different name so i wrote this function:

Dim name
name = $Date&$Time&".csv"
$hst2txt($date, "00:00:00", 24, 1, name)

the problem is that this function does not work. But if i give name = "blablabla.csv" it works.

Oviously i use a scheduler function to call this script every day.

Sorry for my english. Saimir
Parents
  • Thank you for your answer Greg. This morning i tried to do

    name = CStr($Day)&CStr($Month)&CStr(Day)&".csv"

    and it worked fine. I did this becouse I thinked about the problem with special caracter on a file name and I used the $Cstr() function becouse
    the $Day, $Month and $Year system tags sre integer so I think than we have to convert them to string types before.
    Again thank you Greg. Solved

    Best regards
    Saimir Gjika
Reply
  • Thank you for your answer Greg. This morning i tried to do

    name = CStr($Day)&CStr($Month)&CStr(Day)&".csv"

    and it worked fine. I did this becouse I thinked about the problem with special caracter on a file name and I used the $Cstr() function becouse
    the $Day, $Month and $Year system tags sre integer so I think than we have to convert them to string types before.
    Again thank you Greg. Solved

    Best regards
    Saimir Gjika
Children
No Data