Are you using the default text editor in the Mac? If yes, don't, use something like TextWrangler (the one that comes with the Mac is useless).
When I opened the script file, I saw the following.
The Mac editor has not put in the correct line breaks after "exit sub" which means the function is not read properly. It should be
- Code: Select all
if ( nGraphSelected = 3 )
call ChangeFrame(nFrameID,"Mini","Capital Projects.vnn")
if ( nGraphSelected = 4 )
call ChangeFrame(nFrameID,"Mini","External Debt.vnn")
TextWrangler is the best free text editor I've found on the Mac.
Second problem is that you have two functions called "OnGraphSelect". Sable will always call the first one. So rename the 2nd one to be OnGraphSelect_2 (or something more meaningful)
You also need to configure the combo box to actually call the script. View the properties for the 2nd combo box, click the "Script" button and select OnGraphSelect_2.
All should now work as you expect.