Error in my text function

Error in my text function

markseb44
Enthusiast Enthusiast
520 Views
2 Replies
Message 1 of 3

Error in my text function

markseb44
Enthusiast
Enthusiast

Can someone help tell me why I get an error when trying to use this text function in MAP3D 2015;

 

Translate ( Comment, 'dc', 'Redundant Hydrant' )  

 

The error is;

 

Error: Result types are mismatched: the validation operation expected 'Boolean' but the expression returned 'Text'

 

"Comment" is my text field, I am looking for instances of the chars 'dc', and wishing to replace with 'Redundant Hydrant'.

 

Many thanks in advance

0 Likes
521 Views
2 Replies
Replies (2)
Message 2 of 3

parkr4st
Advisor
Advisor

I tried your expression with Map 2015 also. 

 

Translate(Comment, 'dc', 'Redundant Hydrant')

 

There was no error, but the results are not what is expected.  attached.

 

dave

0 Likes
Message 3 of 3

markseb44
Enthusiast
Enthusiast

Thanks Dave, 

 

On revisiting this after looking at your results, I do not think this function will serve the intended purpose.  I think you can only replace a certain number of chars, with the same number of replacements.

 

hmmm?

 

Thanks

0 Likes