Search found 41 matches

by hopkins
Tue Jan 15, 2019 7:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: jsonExport converts number to scientific notation
Replies: 6
Views: 3883

Re: jsonExport converts number to scientific notation

Yes. Is this a bug or is there something I am missing?
by hopkins
Tue Jan 15, 2019 6:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: jsonExport converts number to scientific notation
Replies: 6
Views: 3883

Re: jsonExport converts number to scientific notation

With your script, the jsonExport generates {"id": "7873356"} In the json format that I get (from a website) it is {"id": 7873356}. try this: on mouseup local tStr put "{" & quote & "id" & quote & ": 7873356}" into tStr put jsonImport(tStr) into tStr put jsonExport(tStr) end mouseup Obviously a solut...
by hopkins
Tue Jan 15, 2019 5:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: jsonExport converts number to scientific notation
Replies: 6
Views: 3883

jsonExport converts number to scientific notation

I am reading a JSON formatted string into an array with jsonImport, modifying it, and saving it back to a file in JSON format with jsonExport. I noticed that integers are converted to a scientific notation with jsonExport, so when I read back the file into an array again with jsonImport, I get a dif...
by hopkins
Sun Jan 06, 2019 3:19 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

Thanks - reassuring to know you had the same result. I will look into your examples. So far, for browsing images the widget solution is fine - aside for the fact that I have to learn html and css :)
by hopkins
Sat Jan 05, 2019 8:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

No I do not have it open.

I found the example stack (livecode's) in the link you gave a few posts up: http://lessons.livecode.com/m/datagrid/ ... ts-of-data
by hopkins
Sat Jan 05, 2019 11:13 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

I started out by downloading the example stack from LiveCode (Data Grid and Databases.rev). While the initial load of the database is fast, there are issues when scrolling through the grid, especially when clicking in the vertical bar.
by hopkins
Sat Jan 05, 2019 12:11 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

Excellent, thank you, will definitely look into it. I just happened to be working also on a way to display folders & files, and I see you worked on that as well.
by hopkins
Fri Jan 04, 2019 4:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

Thanks. I have another data grid which I use to display album tracks, which is also seems slow when there are a large number of tracks (> 100), and I will optimize it as you indicated.
by hopkins
Fri Jan 04, 2019 2:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

It is "lightning" fast with a widget !
by hopkins
Fri Jan 04, 2019 1:42 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

The performance of data grids is really disapppointing. I am testing instead a browser widget with generated html code containing the url of the images, and it seems to work well. I will confirm...
by hopkins
Wed Dec 26, 2018 7:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

The images are 150x150 and are not resized in the data grid. They are roughly 30 to 50 Kb each. That corresponds to 75MB for 1500 pictures at 50kb. I made some tests, and the size can be halved by saving them as 256 color BMP, or to about 5Kb in JPEG, without losing quality, it seems. How would I go...
by hopkins
Wed Dec 26, 2018 1:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

Thanks. I tried setting the paintCompression global setting to PICT before saving the thumbnails, and it seems to make the display a little quicker.
by hopkins
Mon Dec 24, 2018 10:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

Thanks. Could you try with a data grid ? Perhaps I am doing something wrong... Would be curious to find out. If you do try, could you try with and without "cache controls" ? P.S. My images are 150 by 150, and am working on a laptop with 8GB of memory, but it is not a racehorse (AMD 1.8GHz)... One ot...
by hopkins
Mon Dec 24, 2018 9:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

No I have not experienced any issues myself. I have 1500 albums in my collection, so 1500 images loading, no issues, it just takes a little time for the app to be responsive. As I metioned, some people have 10 times more... so just wondering. Unless I find a mechanism of updating the datagrid in the...
by hopkins
Mon Dec 24, 2018 7:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Large number of images in a data grid
Replies: 31
Views: 16579

Re: Large number of images in a data grid

I just tried it. It seems to work, but scrolling is noticeably longer. Another problem is I cannot seem to reference an image of another card as a an "imagesource", which means the images would have to be duplicated if I were to use them in different cards. Perhaps the optimum way would be to cache ...

Go to advanced search