![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FM 7v3 - Windows Just an easy solution for the FM goeroes I think, but I am not. Can somebody give the right script steps in the FM language. I want to make a script that does the following: ============================= Set Error Capture [on] Find Records table::Field-A [!] If a search brings no valid records, go to layout A Else go to layout B Endif ============================= The difficult part for me is if there is a function that do give the number of found records (I can not find). If found records = 0 than the above trick can be made easy. Regards, Leon Obers |
#3
| |||
| |||
|
|
FM 7v3 - Windows Just an easy solution for the FM goeroes I think, but I am not. Can somebody give the right script steps in the FM language. I want to make a script that does the following: ============================= Set Error Capture [on] Find Records table::Field-A [!] If a search brings no valid records, go to layout A Else go to layout B Endif ============================= The difficult part for me is if there is a function that do give the number of found records (I can not find). If found records = 0 than the above trick can be made easy. |
#4
| |||
| |||
|
|
leon.obers (AT) iae (DOT) nl> wrote: FM 7v3 - Windows Just an easy solution for the FM goeroes I think, but I am not. Can somebody give the right script steps in the FM language. I want to make a script that does the following: ============================= Set Error Capture [on] Find Records table::Field-A [!] If a search brings no valid records, go to layout A Else go to layout B Endif ============================= The difficult part for me is if there is a function that do give the number of found records (I can not find). If found records = 0 than the above trick can be made easy. You need to search in the Help under Status functions (for FM6) or Get functions for FM 7. Status(CurrentFoundCount) or Get(FoundCount) The lists of those functions in the Help index are extremely useful. I refer to them all the time. |
#5
| |||
| |||
|
|
Status(CurrentFoundCount) or Get(FoundCount) The lists of those functions in the Help index are extremely useful. I refer to them all the time. |
![]() |
| Thread Tools | |
| Display Modes | |
| |