![]() |
Ranges Plug-in for FileMaker Pro 4/5 The powerful Ranges Plug-in for FileMaker Pro uses a starting date and an ending date to generate a range of values between those two dates. The Ranges plug-in will generate number ranges as well.
|
How the Plug-in Works
Integration methods
|
![]() |
Activation is an easy process. When a file using the plug-in opens, simply check to see that the plug-in is installed. You then register the plug-in for use. This all happens within one script. You can find this script within the included file named Register.fp3. You can simply duplicate or import (FMP5 only) this script into your own solution. You will need to modify the script based on the plug-in you are using. The code for the script is found below. |
The text in blue (external function) would be changed according to the plug-in being used. In the case of the Ranges plug-in "Rang-Version" is the proper function. The text in red would also be adjusted according to which plug-in was being tested for. Text in green represents the two fields you'll need to have in your database. The code you store in the Register field is generated by the Register.fp3 file.
Comment ["------ Plug-in test ------"]
Comment ["READ ME BEFORE DUPLICATION OR IMPORT! You must create two fields in your database prior to using this script in your own solutions. 1. Create a global text field named Result 2. Create a calculated text field named Register and input the code provided in the registration database."]
Set Field ["Result", "External("Rang-Version", "")"]
If ["PatternCount(Result, "Troi Ranges Plug-in") < 1"]
Beep
If ["Status(CurrentPlatform) = 1"]
Show Message ["Troi Ranges Plug-in not found. Please put the plug-in into the Extensions folder within the FileMaker folder.
Also enable all the plug-ins under the application preferences."]
Else
Show Message ["Troi Ranges Plug-in not found. Please put the plug-in into the SYSTEM directory within the FileMaker directory.
Also enable all the plug-ins under the application preferences."]
End If
End If
Comment ["------ Start Registration ------"]
Comment ["-"]
Set Field ["Result", "External("Rang-Version", Register)"]
Comment ["If registration is successful a 0 is returned."]
If ["Result <> 0"]
Beep
Show Message ["Registration of Dialog plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in."]
End If
Comment ["-"]
Comment ["------ End Registration ------"]
IMPORTANT: Before you duplicate or import this script into your own solution you will need to create two required fields. These are the global text field named Result and the text calculation field named Register. The code for the Register field is generated by the Register.fp3 file (click here to see an example). You will receive an email with your registration information.
Back to top
| How the Plug-in Works: | |
1 | 2 | 3 | 4 | 5 |
| Ranges Plug-in is copyright © 2000 Troi Automatisering. All rights reserved foreign & domestic. Distributed by ISO Productions, Inc. |
|