Converting LC 6.7.3 App(GLX based) with Data Grids to LC9 - updating the stacks' version required?

Collaborate on tools, libraries, and applications beyond the IDE

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 256
Joined: Sun May 27, 2007 8:19 pm

Converting LC 6.7.3 App(GLX based) with Data Grids to LC9 - updating the stacks' version required?

Post by Martin Koob » 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

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Converting LC 6.7.3 App(GLX based) with Data Grids to LC9 - updating the stacks' version required?

Post by trevordevore » Mon May 27, 2019 11:56 pm

Martin,

I don’t know why you are seeing that error. As to your question about updating all stacks in the GLX project, GLX is irrelevant in this case. GLX doesn’t care on way or the other as it is the engine that handles open stack files.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 256
Joined: Sun May 27, 2007 8:19 pm

Re: Converting LC 6.7.3 App(GLX based) with Data Grids to LC9 - updating the stacks' version required?

Post by Martin Koob » Thu Jun 06, 2019 4:29 pm

Hi Trevor

The problem kind of resolved itself. After I had walked through the code of the row behaviour of one of my data grids on the first card a couple of times using hard breakpoints then removing the hard breakpoints and saving it the stack loaded fine.

I am using lcVCS for version control and when I checked what had changed in the stack after the last save there were a couple of instances of a number of new DG2 properties for added with the following names
- "name": "DG2 Default Action Control
- "name": "DG2 Default Edit Mode Action Select Control"
- "name": "DG2 Default Right Swipe Control"
- "name": "DG2 Default Edit Mode Reorder Control"
- "name": "DG2 Default Left Swipe Control",


So I guess editing and saving the script caused the datagrids to be updated.

Anyway thanks for your response.

Martin

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Converting LC 6.7.3 App(GLX based) with Data Grids to LC9 - updating the stacks' version required?

Post by trevordevore » Thu Jun 06, 2019 4:44 pm

Thanks for the update. I’m glad you got it working.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Locked

Return to “Community Projects”