June 27, 200124 yr 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.
June 28, 200124 yr 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 ]
Create an account or sign in to comment