Funny how a new platform (FileMaker Go for iPad, in this case) helps you tighten your code design. While putting together the Charting on the iPad demo file (updated), naturally I rewrote the subscript that checks versions at file start to include mobile devices. For each variation it can specify minimum version and whether to enforce, allow/advise, or deny any access. The script is more modular and easily extensible by app version, OS, OS version, or device form factor. It has four parts, essentially:
1. You decide your desired behavior rules:
# Whether to advise & allow, enforce version, or deny ANY access # ( 0 or null=ignore, 1=advise but allow, 2=enforce version, # 3=deny ANY access, 4=unsupported platform but allow ) # Min version & enforcement level of FM Go for iPad Set Variable [ $minVersion_FMGo_iPad; Value:"1.0" ] Set Variable [ $enforceLevel_FMGo_iPad; Value:1 ] # # Min version & enforcement level of FM Go (for iPhone) Set Variable [ $minVersion_FMGo_iPhone; Value:"99" //will assure test fail ] Set Variable [ $enforceLevel_FMGo_iPhone; Value:4 ] etc., etc., etc.
2. Then you query the computing environment: