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)
|