Board index » delphi » String Assignment in Object Pascal
Jarle stabell
![]() Delphi Developer |
Fri, 23 Apr 1999 03:00:00 GMT
String Assignment in Object Pascalwc...@morgan.com wrote in article <327C0DB8.4...@morgan.com>... Quote> Would somebody tell me whether Params[i].name still prefixes with 'OLD_' I think so, haven't tested it or read the code throughfully though. Quote> procedure TUpdateSQL.SetParams(UpdateKind: TUpdateKind); power". It points to the same data until you change one of the strings, then a copy is performed. ("Copy on Write Semantics"). I think the name PName is misleading, maybe it is short for Param(eter)Name? (Don't know this context, so I'm definitely not sure). Quote
are reference counted, and automatically released when nobody references it anymore. (At least I think that is the theory!) Quote> if Old then System.Delete(PName, 1, 4); changed if you change PName. If I have understood it right, strings are as easy to use in Delphi 2.0 as Regards, Jarle stabell |