DCurry Posted August 2, 2010 Share Posted August 2, 2010 I just need to trailing trim spaces from a field. Do I need to write a rule for this and use the RTrim command? If so, I am having trouble with the syntax of the rule. What would the "if" statement be? Link to comment Share on other sites More sharing options...
rpaterick Posted August 2, 2010 Share Posted August 2, 2010 if(CaseSelection == "propercase") return Trim(ToTitleCase(Field(Var1))); See if this helps on that field. Link to comment Share on other sites More sharing options...
DCurry Posted August 2, 2010 Author Share Posted August 2, 2010 Thanks, I'll try that. Although, I am not concerned with the case of the data - would that matter? Link to comment Share on other sites More sharing options...
Dan Korn Posted August 2, 2010 Share Posted August 2, 2010 I just need to trailing trim spaces from a field. Do I need to write a rule for this and use the RTrim command? If so, I am having trouble with the syntax of the rule. What would the "if" statement be? You shouldn't need an "if" statement. You can just do this: return RTrim(Field("YourFieldName")); Link to comment Share on other sites More sharing options...
DCurry Posted August 2, 2010 Author Share Posted August 2, 2010 Thanks, Dan - that's exactly what I need. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.