When you copy text from that Properties dialog, using the Debug command WON'T show the invisible leading character:
Code: Select all
Debug GetClipboardText() ; Doesn't show the invisible leading character :(

Code: Select all
Debug GetClipboardText() ; Doesn't show the invisible leading character :(
Changing the debug output font to different ones was something I tried before making this request. None showed the invisible leading character. Can you recommend a font that does?
There are characters which are always invisible. You could create your own font with every character as visible one, but it's not easy, as you have to map every single character to a pictogram:BarryG wrote: Sun Jan 05, 2025 12:41 amChanging the debug output font to different ones was something I tried before making this request. None showed the invisible leading character. Can you recommend a font that does?
Code: Select all
Debug "A" + Chr(10) + "B"
True, which is why I said optional.PBJim wrote: Sun Jan 05, 2025 8:20 amI wouldn't like to see something as important as the debug output window slowed down by a conversion to symbols.
Code: Select all
teststr.s = "A" + Chr(10) + "B"
ShowMemoryViewer(@teststr.s, 10)
Code: Select all
#DumpWidth=8
Procedure DebugMemory(*mem.Ascii,len)
Protected.i b,n
Protected.s s,t
s=RSet(Hex(n),4,"0")
While n<len
s+" "+RSet(Hex(*mem\a),2,"0")
If *mem\a<32
t+"."
Else
t+Chr(*mem\a)
EndIf
b+1
n+1
If b=#DumpWidth
b=0
Debug s+" | "+t
s=RSet(Hex(n),4,"0")
t=""
EndIf
*mem+1
Wend
If b
Debug s+Space((#DumpWidth-b)*3)+" | "+t
EndIf
EndProcedure
Procedure DebugString(*string)
DebugMemory(*string,MemoryStringLength(*string,#PB_ByteLength))
EndProcedure
Procedure DebugClipboardText()
Protected s.s
s=GetClipboardText()
DebugString(@s)
EndProcedure
;SetClipboardText("Hello Barry!")
DebugClipboardText()