On Wed, February 19, 2014 23:58, leledumbo wrote: > Well, if you're not using FPC, then asking for non-FPC code here isn't the > right way. It's useless to point yout o FPC units that BP7 doesn't have. > As > you've experienced, ReplaceStr (from StrUtils), StringReplace (from > SysUtils) are FPC and Delphi routines, and BP7 doesn't have those units > AFAIK. They don't work with PChar anyway.
I'd add: - It is not clear to me why FPC should be more problematic than BP7 (I assume that you do not talk about a 286 PC; even if you do, trunk with the plain 16-bit msdos support might still do it for you). What is the exact execution environment where you intend to use the compiled program (operating system, CPU type)? - It is not completely clear what is the goal/task (e.g. whether it is necessary to modify the PChar string in place, or whether it is OK to convert PChar to a Pascal string first, perform all the necessary operations on it and then pass a pointer to the string data as a PChar for some other processing expecting a PChar parameter). Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal