Recent

Author Topic: All Things SynEdit/Highlighter - Lyrics Editor  (Read 7061 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: All Things SynEdit/Highlighter - Lyrics Editor
« Reply #45 on: May 09, 2019, 02:53:41 pm »
As I said
Code: Pascal  [Select][+][-]
  1.      'There is an invalid character ( ' + p + ' ) in the "Key:" signature. Please correct the key to a valid key character.'    
Is an expression.

You need to cast the result
Code: Pascal  [Select][+][-]
  1.          Application.MessageBox(PCHAR( 'There is an invalid character ( ' + p + ' ) in the "Key:" signature. Please correct the key to a valid key character.' ) , 'Invalid Key Character', MB_ICONERROR);    

Assuming, that "p" is a string.

Ah.... adding PChar to the front of the entire string.
Learn something every time I come on this forum. Very Helpful

THANK YOU!!
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

 

TinyPortal © 2005-2018