Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8267 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi there,

I have this field with: -

foobar , textiush etc.

I want my script to remove the "," and everything after it.

Any help would be most appreciated.

Thanxs

Steve Griff

Posted

Is this the first comma ?

Maybe you only want to retain the first word.

Look at the Text functions:

Leftwords

Position

Substitute

etc.

Posted

For the contents of your field "Input_Text", this calc will do it:

code:


Left_Bit_Of_Text = Trim(Left(Input_Text,Position(Input_Text,",",1,1)-1))

The Trim tidies it up in case someone types a space before the ",". If you want that space in there, remove the Trim function.

Russ

[ April 10, 2002, 06:30 PM: Message edited by: Russell Baker ]

This topic is 8267 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.