Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with Color Serialization

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

    Problem with Color Serialization

    Hello NT support,
    I don't understand how and why, but color serialization eats the first two characters. So if I have a string = "Green" and I serialize it I get "een" in the name property and 000 in RGB.
    I attach an example.

    Baruch
    Attached Files

    #2
    Hi Baruch, I'm not sure - have you tried moving the serialize part to the first OnBarUpdate() bar instead?

    Comment


      #3
      Hi Bertrand,
      I didn't understand your answer.
      I pin point you to the problem and attach code for you to see the problem, and what is your reply?
      Couldn't you try it and see the problem? If you think that in OnBarUpdate() it should work, couldn't you just copy/paste the line and try it?
      I did try it in OnBarUpdate() and now I get thousand lines in the output window with "een". If you need this code (copied from Initialize and pasted into OnBarUpdate) just tell me.
      On more serious note, don't you think its a bug?
      Please don't ask me why I need it, but give me a strait answer is it a bug and how to fix it.

      Baruch
      p.s.
      To add two demi chacacters before the string is not an answer. Thats what I do now, but its stupid.

      Comment


        #4
        Baruch, I checked with development - what you attemtp to do is unfortunately not supported, please work alongside this sample here for serializing colors -



        Since this is more a general C# concept, we would also suggest checking into MSDN docs.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X