Bug? LogColor and double CRLF truncates long

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,

Absolutely not critical as the workaround is to cast the long to string before to pass it to the LogColor.

B4X:
    Dim Now As Long =DateTime.Now
    Log(Now)
    LogColor(Now,Colors.Blue)
  
    Log(DateTime.Time(Now))
    LogColor(DateTime.Time(Now),Colors.Blue)
  
    LogColor(DateTime.Now & CRLF & CRLF, Colors.Red) 'truncates
    LogColor(Now & CRLF & CRLF, Colors.Red) 'truncates

Logs.png


And it is perhaps not a bug or something I surely did forget :)
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
What Log(Now & CrLf & CrLf) shows? (@LucaMs, why don't you try instead of...? :D)



[P.S. 1420210822290]
 

LucaMs

Expert
Licensed User
Longtime User
I was curious to know if the problem was only the LogColor statement or also the Log.

Probably B4A is slightly color blind and hates the colors :p
 
Top