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

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

Recommended Posts

Posted

I need to write a script that copies to fields from one layout (fields... User and Password)

and then go to layout(student)

Enter layout mode

Paste two fields

perform find

Can some one tell me how to do this with two fields to find?

Thank you!

Posted

Set Error Capture [ On ]

Set Variable [ $var ; Main::Field1 & ¶ & Main::Field2 ]

Go to Layout [ "Student" ]

Enter Find Mode [ ]

Set Field [ Student::Field1 ; GetValue ( $var ; 1 ) ]

Set Field [ Student::Field2 ; GetValue ( $var ; 2 ) ]

Perform Find [ ]

Posted

This is great Thanks!

Now can I make it be exactly that match? Like if i ask for "kenh" can I get only "kenh" and not "ken"

And also if it does not find any match to just beep or give a caanot find match message?

Thanks for your help!

Posted

Set Error Capture [ On ]

Set Variable [ $var ; Main::Field1 & ¶ & Main::Field2 ]

Go to Layout [ "Student" ]

Enter Find Mode [ ]

Set Field [ Student::Field1 ; [color:red]"==" & GetValue ( $var ; 1 ) ]

Set Field [ Student::Field2 ; [color:red]"==" & GetValue ( $var ; 2 ) ]

Perform Find [ ]

[color:red]If [ Get ( LastError ) ]

Show Custom Dialog [ "cannot find match" ]

End If

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