lcouri Posted December 2, 2012 Posted December 2, 2012 Hi I'm new to FM and I'm coming from the excel side ... FM12 is quicker for me to do relational stuff (sorts etc.) but I've run into a simple problem: I have a field with a string of alphanumeric text (6) that requires a space to be inserted in the middle. I cannot find out how I would start this in FM12. I know how to do it in excel ... is it similar? ie. create a new column, generate the result ... etc... ? I've also never had to put a calculation into FM12 .... any thoughts would be helpful. Thanks! Lance
bcooney Posted December 2, 2012 Posted December 2, 2012 Is the string ALWAYS 6 characters? Assuming the original string is in myOrigString, then create a calc field, result text myStringwSpace = Left (myOrigString, 3 ) & " " & Right (myOrigString, 3)
lcouri Posted December 3, 2012 Author Posted December 3, 2012 Thanks! Not disimilar to excel This one small thing has saved me time in my exports!! Thanks again!
LaRetta Posted December 3, 2012 Posted December 3, 2012 Barbara's question is good one. Another calc would be: Replace ( myOrigString ; 4 ; 0 ; " " )
Recommended Posts
This topic is 4431 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now