[futurebasic] Re: [FB] Munger experts. Help.

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: "Pixmix (micronet)" <pixmix@...>
Date: Mon, 20 Sep 1999 18:16:38 +0200
Pierre Zippi wrote:

> I am using FN munger to find and replace text.
> It works perfectly as long as the find$ and replace$ are equal in length.
> However, when find$ is longer than replace$ the last characters of the entire
> text handle (length = to the difference between the find$ and replace$ times
> the number of changes made) is duplicated and fills the space left by the
> deletion of the longer find string.
> and when find$ is shorter than replace$ the end of the text is truncated by
> the diffence in length of the find$ and replace$ times the number of changes made.
> How can I correct this?

A piece of code would help.
Maybe you are sending the extra length byte of the pascal string to the Munger
function, or maybe your handle is not unlocked.
Don't know if this helps...