jcook331
20th April 2006, 18:53
I am trying to compare the contents of two text fields, and I am trying to use a suggestion someone posted a while back. The function they said would do this is

long tgbrg0005.text.compare(string language(1), string text1(17), string text2(17))

I can't get the script to compile using this. Is there an include that I'm missing or is it because I am using Baan IV?

Another suggestion was to use text.to.buf() and cmp.mem(), but I'm not sure how to use this to get the results I need. Could anyone show me an example of how to use one or both of these to compare two text fields? Thanks.

mark_h
20th April 2006, 21:40
Did you include the dll otgbrg0005? What error are you getting?

NPRao
20th April 2006, 21:51
I can't get the script to compile using this. Is there an include that I'm missing or is it because I am using Baan IV?
Check for the library tgbrg0005.
Another suggestion was to use text.to.buf() and cmp.mem(), but I'm not sure how to use this to get the results I need.
Here is the origial posting - text fields (http://www.baanboard.com/baanboard/showthread.php?t=9192&highlight=text). Please post your code for others to review.

jcook331
21st April 2006, 00:27
I guess it would help if I included the dll. Wasn't thinking. Thanks for the help. I had already figured out how to use the text.to.buf and cmp.mem, but the dll function sounds more straight forward. Thanks again.