Asger added,


> You can check the mailing list archive.

i couldn't find it there, but i seem to have a flaky connection there 
(and many other places, due to a sporadic naimserver).  It should be an 
include named "mmtar.981102.tgz.ue", with the date of sending included.

But i got no hits :(

The offending code is,
   outputfile->text->InsertStringA(lookupString(
           mergeCommand,fieldnames,fieldContents,fieldcount).copy());
where lookupString  is

LString lookupString(LString const &, LString const *,
                     LString const *,int);

> Or you can use a cast.

you're beyond my skills there :)


> If it's an LString, use "text.InsertStringA(str.copy());" rather than
> "text.insertStringA(str.c_str());".

I did this.  It mostly works, but sometimes, not always, it inserts 
an extra space after the insertion.  For example, in 

<IF CLASS=AF>I am interested in your appointment as an assistant professor<ELSE>
I
am interested in your appointment in <IF CLASS=IO>Industrial Organization<ELSEIF
CLASS=IOLE>Industrial Organization and Law and Economics<ELSEIF CLASS=LE>Law
and Economics<ELSEIF CLASS=AE>Agricultural Economics<ELSEIF CLASS=FM>Farm
Management<ELSEIF CLASS=AM>Applied Microeconomics<ELSEIF CLASS=D0>Microeconomics
<ELSEIF
CLASS=GE>General Economics<ELSEIF CLASS=GT>Game Theory<ELSEIF CLASS=GE>General
Economics<ELSEIF CLASS=AF> ``Any Field''<ELSEIF CLASS=IOGT>Industrial
Organization and Game Theory<ELSEIF CLASS=QBA>Quantitative Business
Analysis<ELSEIF CLASS =EC>Econometrics<ELSEIF CLASS=M0>Business Economics<ELSEIF
CLASS=ME>Microeconomics<ELSEIF CLASS=NR>Natural Resources<ELSEIF CLASS=Q0>Enviro
nmental
and Resource Economics<ELSEIF CLASS=EE>Environmental Economics<ELSE><CLASS><ENDI
F><ENDIF>,

admittedly a long block, if CLASS is EC, it works properly, but if 
CLASS is AM, it inserts the correct field, and then a gratuitious space.

rick

-- 

Reply via email to