Search found 1007 matches

by LCMark
Fri May 17, 2019 10:05 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Shell command
Replies: 2
Views: 105

Re: Shell command

@matgarage : The macOS Terminal has a different environment than that which you get from running an app from Finder (for example 'PATH' which defines where command line binaries are looked for is typically different). Try locating where the DropShip binary is and using the full path in shell (you co...
by LCMark
Mon May 13, 2019 4:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to add element add the end of an array?
Replies: 12
Views: 328

Re: How to add element add the end of an array?

@Zax: The simplest way to do this is: put tNewElement into tArray[the number of elements in tArray + 1] This can be a little bit verbose (particularly if its a deep array) so you can use a simple function to do it: command pushOntoBackOfArray @xArray, pElement put pElement into xArray[the number of ...
by LCMark
Sat May 11, 2019 10:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Array: 0 and empty values
Replies: 11
Views: 312

Re: Array: 0 and empty values

@zax: They aren't - if you put 0 into an array element, it stays as 0. Indeed, I tried: put "Peter" into arr1["name"] put 0 into arr1["level"] answer arr1["name"] & cr & arr1["level"] put arr1 into arr2 answer arr2["name"] & cr & arr2["level"] In the message box in 9.0.x and it displayed the same th...
by LCMark
Thu May 02, 2019 9:31 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 16
Views: 812

Re: Socket connections limit.

@FourthWorld: I suspect its swings and roundabouts. Both OSes have limits in various places (mostly configurable - Linux has an per-process file-descriptor limit, for example), and both will be limited by amount of memory (either kernel or user space); and that of the performance of the algorithms t...
by LCMark
Thu May 02, 2019 9:09 am
Forum: Rich Media
Topic: imageCacheSize property
Replies: 3
Views: 358

Re: imageCacheSize property

@capellan: Also it is in the docs in the IDE* under the 'imageCacheLimit' and 'imageCacheUsage' properties (from whence said wiki page is derived) :)

* I checked in version 9.0.x
by LCMark
Fri Apr 26, 2019 8:39 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 16
Views: 812

Re: Socket connections limit.

@zaxos: The READ_SOCKET_SIZE determines how much extra space is added to the current read buffer for a given socket beyond that needed to empty the sockets system buffer. e.g. if the current read buffer contains 1024 bytes, and the total size needed to empty the system buffer is 4096, the engine wil...
by LCMark
Wed Apr 10, 2019 12:05 pm
Forum: LiveCode Builder
Topic: Memory exhausted
Replies: 5
Views: 505

Re: Memory exhausted

@pink: That error is generated by the lc-compile command-line tool which compiles lcb into modules. The error you are getting typically arises if you have a single handler with a very large number of commands in it (it's a limitation of the parser generator we use for the LCB parser). You can avoid ...
by LCMark
Mon Mar 25, 2019 10:47 am
Forum: Talking LiveCode
Topic: Find offset of first and last char of Word x in a field
Replies: 8
Views: 416

Re: Find offset of first and last char of Word x in a field

@kaveh1000: I think you are looking for the 'charIndex' property. e.g. Given a field (1) containing "Hello World Again!":

Code: Select all

put the charIndex of char 1 of word 2 of field 1 -> 7
put the charIndex of char -1 of word 2 of field 1 -> 11
This should work for any chunk - so trueWord too.
by LCMark
Thu Mar 14, 2019 9:30 am
Forum: Engine Contributors
Topic: new location for extensions?
Replies: 14
Views: 1979

Re: new location for extensions?

@mwieder: You might want to use this instead - revEnvironmentExtensionsPath() :)
by LCMark
Wed Mar 13, 2019 7:25 am
Forum: Engine Contributors
Topic: new location for extensions?
Replies: 14
Views: 1979

Re: new location for extensions?

@mwieder: As far as I'm aware the 9.1-dp-1 (when it appears) won't change anything in regards to where things are stored in a built/deployed distribution. When you build from source, it isn't quite the same though - the extensions are built into packaged_extensions (they always have been) and then t...
by LCMark
Fri Aug 17, 2018 7:50 am
Forum: Linux
Topic: Printing to pdf issue
Replies: 12
Views: 1223

Re: Printing to pdf issue

@Scoperzor: There's not many reasons that open printing to pdf <filename> can fail. It throws an error if it can't find the pdfprinter library (or it doesn't load) - which isn't the case here. Otherwise 'printing failed' would indicate a failure to open the <filename> for create/write; memory exhaus...
by LCMark
Mon Aug 13, 2018 8:27 pm
Forum: LiveCode Builder
Topic: AmongKeysOfArray issues
Replies: 3
Views: 494

Re: AmongKeysOfArray issues

@pink: The problem here is that pData[tKey] is not necessarily an array. Try: private handler setData(in pData as Array) variable tCount as Number variable tKey as String put the number of elements in pData into mCount repeat with tCount from 1 up to mCount put tCount formatted as string into tKey i...
by LCMark
Mon Aug 13, 2018 7:24 pm
Forum: Off-Topic
Topic: Expired licence
Replies: 25
Views: 3483

Re: Expired licence

@richmond62: Yes - that is correct. Whilst all editions are derived from the same source-base (commercial has private code included which is not under GPL though), we own the copyright on the code so we (as in LiveCode Ltd.) are allowed to distribute things we build from it under any license we choo...
by LCMark
Mon Aug 13, 2018 10:54 am
Forum: Feature Requests
Topic: Multi Threadedness ?
Replies: 67
Views: 5010

Re: Multi Threadedness ?

@FourthWorld: Irksomely I wrote a response to the above then it got eaten because I had been logged out of the forums (due to timeout). Anyway - I've reviewed the code in the engine for this and the engine change is unlikely to happen soon. However, that being said, wrapping the current functionalit...

Go to advanced search