Fulltrim issues with servers

We are using the “Fulltrim” function to eliminate “empty” entries from the text string. In fact, we use the “Fulltrim” function in the “Before mail arrives” agent. This function is working fine in AIX box but not on Windows box. Did anyone face similar issues?

Subject: Fulltrim issues with servers

what’s not happening and what should happen? Post your code…

Subject: RE: Fulltrim issues with servers

This is part of the code from the agent. …

Set itemBody = docUnprocessed.GetFirstItem (“Body”)strBody =Left(itemBody.text, 400)

If Instr(strBody, “/TEST”)> 1 Then

strRequestor=Fulltrim(Strleft(strBody, “/TEST”)) +“/TEST”

End If

When strBody contains some string like:

"

Jinson George/OU1/OU2/Domain"

Then the trailing spaces and empty lines at the beginning are not removed when the agent runs from the Windows box. No error message occurs.

It works on AIX box.

Subject: Fulltrim issues with servers

Hi,

Have you tried to put print statements to see the value before and after the Fulltrim?

Can you use the remote debugger?

JYR