Hi , I am trying to write an agent to remove spaces from the contents of a field. I have tried several ways and searched in the old forums too but nothing is working. I am testing on a local replica - that shouldn’t matter I assume?
I have tried the following: (where the field name is PartNo)
Formula language
@ReplaceSubstring(PartNo;" “;”");
Script 1 :
Sub Initialize
Dim s As String
Dim v As Variant
s = PartNo
v = Split(s, " ", -1)
s = ""
Forall vals In v
s = s + vals
End Forall
End Sub
Script2:
Sub Initialize
Evaluate(|@replacesubstring(PartNo;" ";"")|)
End Sub
I would be reeally grateful for any suggestions as I am now completely stumped! Thanks Anne