Industry Online Support
Technical Forum
7/8/2009 7:57 AM | |
Joined: 10/7/2005 Last visit: 10/9/2024 Posts: 3024 Rating: (1054) |
Hello Steve QM I'm afraid not (well, none thatI can think of anyhow apart from developing your own String insert Function). The is a reason why FC17 does what you observed and it has to do with the fact that STRINGS are so called complex data types and FC17 will use pointers internally to determine the data addresses of the Stringsand write directly to these addresses rather than buffering the Stringsinternally. Add to that the fact that FC17 uses the actual String lenght (the first two bytes of a Stringcontain the max lenght and actual lenght respectively) towork out where to insert IN2 String into IN1 String and then calculate the actual lenght of RETVAL String and it has no chance but to get confused when IN1 and RETVAL are in the same data location. Anyway, I hope this helps (or at least somewhat explains). |
Cheers |
|
Follow us on