Search found 14 matches

by cpuandnet
Thu Aug 20, 2020 10:43 pm
Forum: Talking LiveCode
Topic: Table field: Title Row & no input
Replies: 9
Views: 1779

Re: Table field: Title Row & no input

As dunbarx stated, it can easily be done but it is kludgy. I often use 2 scrolling list fields. One for the header and one for the data. On both fields, set the lock text to true. On the header, turn off the scrollbars. On the data field, set the list behavior property to true. Here is what one of m...
by cpuandnet
Mon Jul 20, 2020 8:05 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: [SOLVED] Filtering an array...
Replies: 11
Views: 1955

Re: Filtering an array...

After thinking about it AxWald, i realized there might be a single case scenario where your suggestion might be a problem. If key K is numeric, which it is in Stam's case, then the new array would have numeric keys that were non-contiguous (i.e. 2,5,7 instead of 1,2,3). This would cause an issue if ...
by cpuandnet
Mon Jul 20, 2020 4:08 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: [SOLVED] Filtering an array...
Replies: 11
Views: 1955

Re: Filtering an array...

Even better. Thanks AxWald!
by cpuandnet
Mon Jul 20, 2020 6:08 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: [SOLVED] Filtering an array...
Replies: 11
Views: 1955

Re: Filtering an array...

I'm not aware of any methods that allow you to insert or delete elements of an array. The only other option is using a the number of elements expression as follows: repeat for each element tArr in tArray if tArr[“key”] = “xyz” then //key is the name of the field to compare with pFilter put tArr into...
by cpuandnet
Sun Jul 19, 2020 6:35 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: [SOLVED] Filtering an array...
Replies: 11
Views: 1955

Re: Filtering an array...

Hi Stam,

Change your repeat control structure to use element instead of item like this

Code: Select all

repeat for each element tArr in tArray
Item is used in chunk expressions with itemDelimiter. Key and element would be used in repeat control structures with arrays.

I hope that helps.
by cpuandnet
Thu May 28, 2020 4:18 pm
Forum: Talking LiveCode
Topic: driving me crazy!
Replies: 3
Views: 1067

Re: driving me crazy!

Hi adventuresofgreg, As dunbarx indicates, it has to do with your stack decorations. You can either reset it by opening the message box and execute the following command: set the decorations of stack "yourStackName" to "title,menu,minimize,maximize,close" or use the inspector and change the controls...
by cpuandnet
Tue May 26, 2020 4:23 pm
Forum: Talking LiveCode
Topic: Best or easiest way to make a vertical scrolling area with fields and buttons
Replies: 10
Views: 1809

Re: Best or easiest way to make a vertical scrolling area with fields and buttons

OUCH, this hurts! 8) Well it would be nice if I would have been able to scroll the group in edit mode :wink: Open your message box and use the following command to scroll the group. set the vScroll of group "yourGroupName" to 100 The number you use (100 in this example) is really a hunt and peck me...
by cpuandnet
Fri Apr 03, 2020 5:58 pm
Forum: Databases
Topic: Records with ,s and returns
Replies: 3
Views: 2241

Re: Records with ,s and returns

Change your update SQL statement to put "UPDATE students SET name = :1, class = :2, group1 = :3, group2 = :4 WHERE id="&stID into scrpt I would also go a step further and also put the stID into the placeholders for clarity and consistency put "UPDATE students SET name = :1, class = :2, group1 = :3, ...
by cpuandnet
Thu Oct 10, 2019 5:43 pm
Forum: Databases
Topic: SQLite connection drops occasionally
Replies: 3
Views: 2040

Re: SQLite connection drops occasionally

Hi Michael, The technique I often use to minimize this issue, no matter which database i use, is to have a function on the stack script that returns the database id. In that function, you can check whether or not the database is open. If the database is not open, then call the openDatabase command. ...
by cpuandnet
Tue Oct 08, 2019 11:54 pm
Forum: Windows
Topic: Datagram memory issue
Replies: 8
Views: 3569

Re: Datagram memory issue

Have you tried debug breakpoints and/or putting messages to the message box window to get a little more clarification on what is happening and when?
by cpuandnet
Thu Aug 08, 2019 4:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: " & quote...
Replies: 5
Views: 1202

Re: " & quote...

If the end result is just to escape the quotes so you can insert it into a database, i find it would just be easier to use query placeholders and let LiveCode work it's magic. And it is safer since it would avoid SQL injections. ... put "INSERT INTO html_table (html_field) VALUES (:1)" into tQuery r...
by cpuandnet
Tue Aug 06, 2019 3:12 pm
Forum: Windows
Topic: Livecode v950 IDE crash on Windows
Replies: 2
Views: 1915

Re: Livecode v950 IDE crash on Windows

Same here but with the Indy and Business Edition. The same project using LC 9 0 4 Indy or Business Edition does not cause a crash. I have not been able to reliably reproduce this either. It has happened when I've cleared a breakpoint, deleted a control, and just applied new code from the code window...
by cpuandnet
Mon May 06, 2019 11:05 pm
Forum: Windows
Topic: Datagrid column hide/show delay
Replies: 0
Views: 2192

Datagrid column hide/show delay

Does anyone have a better solution for hiding/showing datagrid columns? I'm using the code below in a command script that is called from the stackResize message. However, there is a noticeable delay before the columns are hidden or shown. It happens whether there is one line of data set using dgText...
by cpuandnet
Thu Jan 17, 2019 7:13 pm
Forum: Windows
Topic: Black window background flash with datagrid
Replies: 0
Views: 1841

Black window background flash with datagrid

Has anyone experienced a black window background flash when the window is maximized or resized and the window has a datagrid with data? When the datagrid doesn't have data, it doesn't seem to occur. But, even if the datagrid has only 1 row, it still seems to occur. There are no errors but it is real...

Go to advanced search