tottijohn Posted April 24, 2007 Share Posted April 24, 2007 I have a text field which contains contents like "1A+22B-3C" or something like that. I created another number field so that i can get a sum of the text field, which will be "20" for the above example. How can i go about doing that? I tried using the filter function in the number field; Filter((text field);"0123456789+-*/") but could only narrow it down to "1+22-3" Link to comment Share on other sites More sharing options...
The Shadow Posted April 24, 2007 Share Posted April 24, 2007 Just run Evaluate on the filtered result: Evaluate( "1+22-3" ) will give 20. Link to comment Share on other sites More sharing options...
tottijohn Posted April 24, 2007 Author Share Posted April 24, 2007 How can i not think of such simple solution? Gee thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6210 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