jwallace Posted June 27, 2001 Posted June 27, 2001 Is there a way to determine if the database file is running under a Rintime or the FileMaker application? I was hoping for a status function or something that would help me make that determination. I have 2 cenarios underwhich my solution will be deployed. 1 will be non-networked situations with no need for the full install of FMP. Bound runtimes will be used. In those situations where multiple computers need to have access to the database, FMP will be used. I need to be able to determine via calculation or script which is being used in order to control functionality. Thanks for any help.
jwallace Posted June 28, 2001 Author Posted June 28, 2001 That dosen't seem to do it. Any other suggestions?
DykstrL Posted June 28, 2001 Posted June 28, 2001 Create a calculation field with Status(CurrentAppVersion) as the calculation, and make sure the field storage option is set to "Do not store calculation results. Running the file in Fmpro should give "Pro 5.0v3" as the result. Runtime should give "Runtime 5.0v4" as the result. The results should be the same running on either Windows or MAC - I just tested it. I would suggest setting up a Global field (CurrentApp)(text). Then in an open script include the following: If(PatternCount(Status(CurrentAppVersion),"Pro") = 1) SetField(CurrentApp) = "1" If(PatternCount(Status(CurrentAppVersion),"Runtime") = 1) SetField(CurrentApp) = "2" Then whatever operations you want to perform based on the version, use the CurrentApp Global field, (i.e. If(CurrentApp)="1", Go to Layout #1, If(CurrentApp)="2", Go to Layout #2, etc.). This way, no matter what records are displayed, the "CurrentApp" data is always available. [ June 28, 2001: Message edited by: dykstrl ] [ June 28, 2001: Message edited by: dykstrl ]
jwallace Posted July 2, 2001 Author Posted July 2, 2001 Thank you for your help. You guys were right. JW
Recommended Posts
This topic is 8914 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