set(True = false)

PathToStr(sPath) "^" What is the Caret doing?

I have inherited some Citect code and there is a problem with it...

There is some reports on a report server that is triggered by cicode and there is "a problem" that is causing some kind of crash in the report server that is very elusive to discover. I'm turning over the smallest pebbles now, I'm not the first engineer to be asked to fix this one...

I am not so familiar with Citect and I am trying to understand the syntax, as in some locations a caret is used in strings and not in others...

PathToStr("^"\\PCName\Data\_Mill\DailyReport Yesterday.txt^"");

is used in the code and

PathToStr("[data]:test.txt");

is used in the help file...

What are the carets doing???

Parents
  • Worth noting also, that those caret-quotes shouldn't be there either, as your path variable shouldn't (usually) include quotes in it. An exception might be if it's being written into a csv where you do want values surrounded by quotes:
    "this is, a string, value", "I don't want my embedded, commas, to separate my field values"
    I.e. It should be:

    PathToStr("\\PCName\Data\_Mill\DailyReport Yesterday.txt");
Reply
  • Worth noting also, that those caret-quotes shouldn't be there either, as your path variable shouldn't (usually) include quotes in it. An exception might be if it's being written into a csv where you do want values surrounded by quotes:
    "this is, a string, value", "I don't want my embedded, commas, to separate my field values"
    I.e. It should be:

    PathToStr("\\PCName\Data\_Mill\DailyReport Yesterday.txt");
Children
No Data