Search found 1084 matches

by LCMark
Tue May 26, 2020 11:00 am
Forum: Bug Triage
Topic: x( 666) -> No error!
Replies: 5
Views: 48

Re: x( 666) -> No error!

This isn't a bug really just a side-effect of command call syntax which is: IDENTIFIER EXPR , ... , EXPR As an expression can be (EXPR), and the ( token doesn't need whitespace before it you have that: x(666) Means call x with argument 666 and x() Is a parse error as () is not a valid expression. ED...
by LCMark
Fri May 15, 2020 11:48 am
Forum: Databases
Topic: SQLite Database BLOB is identified as STRING
Replies: 3
Views: 357

Re: SQLite Database BLOB is identified as STRING

@n.allan: The sqlite driver originated with SQLite2 which did not support binary data... This meant that binary data had to be explicitly encoded as text and then decoded (when using the *b). If your database is coming from another source (i.e. not made with LC's sqlite driver) then you need to do: ...
by LCMark
Thu May 14, 2020 3:38 pm
Forum: LiveCode Builder
Topic: Script Objects and Calling Back the Stack/Engine
Replies: 5
Views: 573

Re: Script Objects and Calling Back the Stack/Engine

ScriptObjects are weak references to the object you create it from - so they don't change, just become invalid if the (script) object is deleted. It sounds like the API you are using only sends a callback once... Maybe you have to re-register the callback each time you want one? (A bit like the way ...
by LCMark
Tue May 12, 2020 6:04 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: running in background
Replies: 25
Views: 2109

Re: running in background

@trevix: Yes this is currently a hook which is only accessible from LCB. It was motivated by both your FLIC button library (so that we could make it work the same as iOS), and by the barcode scanner where we now use a device's light sensor to perform 'auto' torchMode. (Android strongly suggests that...
by LCMark
Fri May 01, 2020 9:38 am
Forum: Android Deployment
Topic: App fails to launch when downloaded
Replies: 7
Views: 868

Re: App fails to launch when downloaded

@Trevix: Panos has found the problem I think - your device (by the model number you mentioned) appears to be this https://www.gsmarena.com/asus_zenfone_2_ze551ml-6917.php - which has an Intel Atom processor... Which will be either x86 or x86-64 (I'm not sure which). (That being said I did think x86/...
by LCMark
Tue Apr 21, 2020 8:52 am
Forum: Android Deployment
Topic: no internet on Android via Browser widget
Replies: 6
Views: 411

Re: no internet on Android via Browser widget

@Bevan: Try making sure you are using `https` URLs in your app - newer Android devices are secure-by-default which means they disallow access to HTTP urls (the same as iOS has done since iOS7 or so).
by LCMark
Sun Apr 19, 2020 8:48 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LC Community and Community + requirements
Replies: 7
Views: 482

Re: LC Community and Community + requirements

@anmldr: Yes - both Community and Community Plus both require that you make your source-code available if you distribute stacks / apps built with them. As Richard points out they are not variants of the same license: Community is GPLv3; Community Plus is a modified version of our commercial license ...
by LCMark
Sun Apr 19, 2020 8:41 am
Forum: Talking LiveCode
Topic: FrontScript message path confusion
Replies: 9
Views: 582

Re: FrontScript message path confusion

@trevix: You have a frontscript which does: on ReceiveSomething doThis end ReceiveSomething Then doThis is implemented in a behavior which is attached to a button in another stack. Unless the button with this behavior is the target of the 'ReceiveSomething' message, then 'DoThis' is not in the messa...
by LCMark
Mon Apr 06, 2020 7:03 pm
Forum: Talking LiveCode
Topic: array calculations slower after combine/split
Replies: 6
Views: 459

Re: array calculations slower after combine/split

@FourthWorld: The arithmetic operators have always been overloaded - you can do Number op Number, Array op Number or Array op Array.
by LCMark
Mon Apr 06, 2020 6:11 pm
Forum: Talking LiveCode
Topic: array calculations slower after combine/split
Replies: 6
Views: 459

Re: array calculations slower after combine/split

Cache coherence I think... Average iterates over the elements of an array in hash-order (as this is the fastest way to iterate through an array and order of processing doesn't matter in this case). The loop which constructs the values results in the values in memory being in numeric order (of i). Wh...
by LCMark
Mon Apr 06, 2020 5:06 pm
Forum: Talking LiveCode
Topic: array calculations slower after combine/split
Replies: 6
Views: 459

Re: array calculations slower after combine/split

@Wil: It isn't *quite* the same... In the first case, the values in the array are numbers already (random returns a number). In the second case, the values in the array are strings (split doesn't know what is on each line, after all) so average has to first convert the string to a number in order to...
by LCMark
Fri Mar 27, 2020 1:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scripting 'fit to content'
Replies: 5
Views: 357

Re: Scripting 'fit to content'

All the PI is doing is (I believe):

Code: Select all

set the width of <object> to the formattedWidth of <object>
OR
set the height of <object> to the formattedHeight of <object>
by LCMark
Tue Mar 24, 2020 10:18 am
Forum: LiveCode Builder
Topic: How do I deal with Code Blocks?
Replies: 26
Views: 3025

Re: How do I deal with Code Blocks?

@PaulDaMacMan: I've taken a quick look at the AVMidi code... I wonder if: private foreign handler objC_AVMIDIPlayerAlloc() returns ObjcRetainedId binds to "objc:AVMIDIPlayer.+alloc" private foreign handler objC_AVMIDIPlayer(in pAVMIDIPlayerInstance as ObjcRetainedId, in pFileNSURL as ObjcId, in pSou...
by LCMark
Mon Mar 23, 2020 6:10 pm
Forum: Announcements
Topic: RELEASE LiveCode 9.6.0 DP-3
Replies: 27
Views: 2535

Re: RELEASE LiveCode 9.6.0 DP-3

@mwieder: There's nothing wrong with the third-party CEF library itself. I can build and run CEFsimple here with no problems. It's just the integration of the external library through the spaghetti of the MCBrowserx calls that messes things up. I have to strongly disagree with you - the MCBrowser co...
by LCMark
Mon Mar 23, 2020 2:19 pm
Forum: Announcements
Topic: RELEASE LiveCode 9.6.0 DP-3
Replies: 27
Views: 2535

Re: RELEASE LiveCode 9.6.0 DP-3

@trevix: Re: Speech Library In terms of the new speech library - the functionality it offers is a superset of that offered by revSpeech. Indeed, the callback mechanism isn't something which revSpeech does, although we could possibly emulate the smaller revSpeech API with the new speech library I sup...

Go to advanced search