Converting LC 6.7.3 App(GLX based) with Data Grids to LC9 - updating the stacks' version required?
Posted: Mon May 27, 2019 7:36 pm
When I first got my LC 6.7.3 application to run in 9.0.4 the application it threw and error when opening the main stack. The error dialog shows while the application is laying out the second of 2 Data Grid controls. (The first one loaded with no problems. The error occurs in the LayoutControl handler of the row behavior script.
Here is the error dialog
executing at 9:59:03 AM
Type Object: can't set object property
Object Behavior Script
Line set the rect of graphic "Background" of me to pControlRect
Hint LayoutControl
To try and figure out what was happening I put a hard breakpoint in the script and walked through it. This time the same error did not occur. Then everytime since the stack opened fine and the Data Grids had no problems opening. I did not change any code other than adding the breakpoints and then commenting them out.
I tried the same thing on a second Mac and got the same result.
Could there be something happing with the Data Grid created in the original app causing problems for LC9 which now uses Data Grid 2.
I thought I should try to save the stack is saved as an LC 9 so I used 'save as...' to save it as an LC 9 version stack under a different name and then rename it to the original application stack.
Is this necessary to do? Should all the stacks in the GLX project be saved as LC 9 stacks?
Any ideas why the data grid would not load properly until I stepped through it in the script editor at else one?
Thanks
Martin
Here is the error dialog
executing at 9:59:03 AM
Type Object: can't set object property
Object Behavior Script
Line set the rect of graphic "Background" of me to pControlRect
Hint LayoutControl
To try and figure out what was happening I put a hard breakpoint in the script and walked through it. This time the same error did not occur. Then everytime since the stack opened fine and the Data Grids had no problems opening. I did not change any code other than adding the breakpoints and then commenting them out.
I tried the same thing on a second Mac and got the same result.
Could there be something happing with the Data Grid created in the original app causing problems for LC9 which now uses Data Grid 2.
I thought I should try to save the stack is saved as an LC 9 so I used 'save as...' to save it as an LC 9 version stack under a different name and then rename it to the original application stack.
Is this necessary to do? Should all the stacks in the GLX project be saved as LC 9 stacks?
Any ideas why the data grid would not load properly until I stepped through it in the script editor at else one?
Thanks
Martin