krh Posted September 7, 2010 Posted September 7, 2010 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!
Raybaudi Posted September 7, 2010 Posted September 7, 2010 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 [ ]
krh Posted September 7, 2010 Author Posted September 7, 2010 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!
Raybaudi Posted September 7, 2010 Posted September 7, 2010 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
krh Posted September 7, 2010 Author Posted September 7, 2010 Thank you soo much!! You just got ride of my headache!!!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now