TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: BRYAN SMITH
date: 1997-04-07 10:29:00
subject: Building Strings ???

Can anybody explain the following ?  (code has been simplified) ...
Delphi Version 1.0 (raw).  Platform, W95.
var
  tch : char ;  s : strings ;
begin
  tch := 'A' ;
{ then use either }
  s := tch ;
  ShowMessage('Drive '+ s + ':') ;   { works OK, no problem }
{ or ... }
  ShowMessage('Drive '+ tch + ':') ; { problems ! }
The second causes a GPF somewhat later in the code while traversing a
pointer structure.  It seems that you can not "plus" a character into a
string for ShowMessage, though I have "plussed" character variables into
strings millions of times in the past.
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.