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

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

Recommended Posts

Posted

Hi,

I have a text field from which I want to extract the last 4 letters. I want to use these letters and insert them into a field during a scripted search.

Here is my script:

enter find mode (pause)

go to field ( annuaire:;)# tel)

insert calculated result ( select; annuaire::#tel;right ( annuaire::#tel bur;4))

perform find()

The reason for my post is obviously because it does not work. Where am I failing?

Cheers

Posted

Hi,

I have a text field from which I want to extract the last 4 letters. I want to use these letters and insert them into a field during a scripted search.

Here is my script:

enter find mode (pause)

go to field ( annuaire:;)# tel)

insert calculated result ( select; annuaire::#tel;right ( annuaire::#tel bur;4))

perform find()

The reason for my post is obviously because it does not work. Where am I failing?

Cheers

You're in find mode. There is no data to insert.

Instead:

set Variable [ $temp; right ( annuaire::#tel bur;4) ]

enter find mode (no pause)

set field ( annuaire::# tel; $temp)

perform find()

Posted

Thanks Bruce,

Your suggestion worked like a charm.

I was not aware of that $temp variable. That will be very usefull for me as it must also be for you.

Happy New Year to you and whoever your care a lot for.

Cheers!

Posted

Thanks Bruce,

Your suggestion worked like a charm.

I was not aware of that $temp variable. That will be very usefull for me as it must also be for you.

Happy New Year to you and whoever your care a lot for.

Cheers!

Read up some more about variables, both $ and $$ types.

$temp is an arbitrary name I chose, you can have many different variables in operation in scripts and calculations, file export, etc.

This topic is 5803 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.