Nov 12, 2004 #1 tomk01 ISP Oct 18, 2004 69 US I need a simple trim statement that will allow me to use the field starting on the 4th character. I.e.. field 1234567890 Intended Output: 567890
I need a simple trim statement that will allow me to use the field starting on the 4th character. I.e.. field 1234567890 Intended Output: 567890
Nov 12, 2004 #2 synapsevampire Programmer Mar 23, 2002 20,180 US That's nto a trim function, trim removes spaces in most languages. Try: mid({table.field},4) If you need a specific number of charaters after starting at the 4th, there's an additional optional parameter to the function of: mid({table.field},4,X) X is the number of characters. -k Upvote 0 Downvote
That's nto a trim function, trim removes spaces in most languages. Try: mid({table.field},4) If you need a specific number of charaters after starting at the 4th, there's an additional optional parameter to the function of: mid({table.field},4,X) X is the number of characters. -k
Nov 12, 2004 #3 rosemaryl MIS Jul 13, 1999 1,367 US Dear Tomk01, If this is a string field, this will work nicely, Mid({Table.Field},4, length({Table.Field})) If it is a numeric field then Mid(Totext({Incident.Incident #}),4, length(Totext({Incident.Incident #}))) Regards, ro Rosemary Lieberman rosemary@microflo.com, http://www.microflo.comMicroflo provides expert consulting on MagicTSD and Crystal Reports. Upvote 0 Downvote
Dear Tomk01, If this is a string field, this will work nicely, Mid({Table.Field},4, length({Table.Field})) If it is a numeric field then Mid(Totext({Incident.Incident #}),4, length(Totext({Incident.Incident #}))) Regards, ro Rosemary Lieberman rosemary@microflo.com, http://www.microflo.comMicroflo provides expert consulting on MagicTSD and Crystal Reports.
Nov 12, 2004 #4 lbass Technical User Feb 9, 2002 32,818 US You actually show your output starting on the 5th character, so try: mid({table.string},5) -LB Upvote 0 Downvote