Bug Reports
MergeText bug
Hello,
If for some unpredictable reason your string turns into a boolean, MergeText enters an endless loop.
some unpredictable reason your string turns into a boolean
If you pass in a boolean - yes it will hang. But otherwise - no.
Actually you'd have to explicitly pass in .t.. .f. defaults to an empty string - that would be hard to do unless you have a pretty major logic error leading up to the call to MergeText().
I suppose the safer way to check in wwEval.MergeText() would be:
tcString = IIF(VARTYPE(tcString) != "C", "", tcString)
tcDelimiter=IIF(VARTYPE(tcDelimiter) != "C","<%",tcDelimiter)
tcDelimiter2=IIF(VARTYPE(tcDelimiter2) != "C","%>",tcDelimiter2)
Of course that code preceeded VARTYPE() originally, and TYPE() checks were too slow because of the implicit eval. 😄
+++ Rick ---
that would be hard to do
I did it! 😃