Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Printing a string variable to the output window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Printing a string variable to the output window

    Hi all,

    I know I'm doing something really shortsighted, but I need help trying to fix this.

    I've initialized a string variable called "LongEntry_EvalScore_Status" as a string data type. I assign a thread of text to it (something like "Situation 1"). When it comes time to print it in the output window with the following code....

    Print("LongEntry_EvalScore_Status: " + LongEntry_EvalScore_Status);

    Nothing appears to the right of the title. Am I missing a toString() somewhere, or does the output window handle string variables differently?

    Thanks in advance to anyone that can help.

    Yours,
    Spider

    #2
    Spider, what happens if you only print the LongEntry_EvalScore_Status variable upon hitting your print condition, with the title in front? Would you see a different outcome?

    Comment


      #3
      Hi Bertrand,

      I went one step further and wiped out the title part of the print statement. So, it just reads:
      Print(LongEntry_EvalScore_Status);

      ... but it still prints out a blank line in the Output window.

      Now, it could be what I'm attempting to save as a string. Take a look at these and see if you think I'm attempting and weird character saves with these statements:

      LongEntry_EvalScore_Status = "LE Scenario 2 - One hit now, one hit earlier";
      LongEntry_EvalScore_Status = "LE Scenario 3 - No hit, but previous double hit";

      Another possibility is that my conditions for these scenarios are not being hit, hence nothing's being printed. Still looking into it.

      Comment


        #4
        It actually ended up being the last possibility (i.e. the conditions were never hit). Thanks for the reply earlier all the same!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        168 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        324 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        250 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X