Jump to content

replacing field content


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

Recommended Posts

  • Newbies

hi guys

i need a little help here. i'm new to the scripting in FM. please if it's not too time consuming somebody help me with the following:

i have a field f1 like this:

[empty]

[empty]

123

234

345

and then a filed f2 like this:

123

234

345

456

567

what i'd like to do is a script that checks if f1 is empty - if it is does nothing to the f2, but if f1 is different then nothing set f2 to the value of f1

iguess it's not very difficult script to do but i couldn't get it to work.

help please.

franz

Link to comment
Share on other sites

quote:

Originally posted by tintan:

hi guys

i need a little help here. i'm new to the scripting in FM. please if it's not too time consuming somebody help me with the following:

i have a field f1 like this:

[empty]

[empty]

123

234

345

and then a filed f2 like this:

123

234

345

456

567

what i'd like to do is a script that checks if f1 is empty - if it is does nothing to the f2, but if f1 is different then nothing set f2 to the value of f1

iguess it's not very difficult script to do but i couldn't get it to work.

help please.

franz

SetField["f2",Case( IsEmpty(f1), f2, f1 )]

Link to comment
Share on other sites

This topic is 7869 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
 Share

×
×
  • Create New...

Important Information

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