Search found 2333 matches

by SparkOut
Tue Jan 26, 2021 2:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Progress Bar in a Datagrid
Replies: 2
Views: 138

Re: Progress Bar in a Datagrid

No way of telling without more details but I think you might first check the syntax for reference to the dg control and include "of me"

Code: Select all

set the thumbPosition of scrollbar "Progress Scrollbar" OF ME to pDataArray["progress bar"]
by SparkOut
Mon Jan 25, 2021 12:02 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Simultaneously updating fields
Replies: 13
Views: 448

Re: Simultaneously updating fields

Re: randomSeed Every time use use a random function, the value will be randomised according to the engine's algorithms. The engine loads its own randomSeed value each time it starts up. You do NOT get the same initial result each time (unless you load the same seed value). You generally don't need t...
by SparkOut
Sun Jan 24, 2021 10:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Simultaneously updating fields
Replies: 13
Views: 448

Re: Simultaneously updating fields

Nah, let the engine pick its own seed. That's random (or as pseudo-random as it gets).
Setting a seed just means you can replay the same "random" order again.
I'm not sure that's ever useful in normal circumstances. I think Richard mentioned a use-case to work back through cryptopgraphic processes.
by SparkOut
Sun Jan 24, 2021 10:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Simultaneously updating fields
Replies: 13
Views: 448

Re: Simultaneously updating fields

Urgh, yes - actually reading the code is a bit baffling, I didn't try it, just referred to using "lock screen". @Glenn are you just trying to put a random letter in each field? (If so, must it be unique?) If uniqueness is not required then no need for all the nested loops and randomising at all: on ...
by SparkOut
Sun Jan 24, 2021 9:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Simultaneously updating fields
Replies: 13
Views: 448

Re: Simultaneously updating fields

But you can just add "lock screen" before the repeat loop and "unlock screen" after it, then the screen will do the redrawing necessary for all the fields together. You can also leave out the specific "unlock" command in such a case - the unlock will automatically happen at the end of the handler, w...
by SparkOut
Sun Jan 24, 2021 10:46 am
Forum: Windows
Topic: Video "player" won't show video, but plays audio - Windows 10
Replies: 2
Views: 194

Re: Video "player" won't show video, but plays audio - Windows 10

This is bound to be a codec issue. This post will help

http://forums.livecode.com/viewtopic.ph ... 02#p172402

(Install, reboot, then try again)
by SparkOut
Wed Jan 20, 2021 10:03 pm
Forum: Internet
Topic: tsNetGetFileSync stopped working - tsNetCABundle problem
Replies: 3
Views: 468

Re: tsNetGetFileSync stopped working - tsNetCABundle problem

No, but thanks for the thought. The brackets were added afterwards, just as a helper to force evaluation of the variable to ensure correct resolution of the path to the certificate bundle. Further testing makes me think that the problem is with configuration of the server hosting the source data, bu...
by SparkOut
Tue Jan 19, 2021 10:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What is a (better) replacement for CSV-data?
Replies: 6
Views: 519

Re: What is a (better) replacement for CSV-data?

dunbarx wrote:
Tue Jan 19, 2021 9:11 pm
@The whole world. Anyone have a valid reason to prefer CSV...?
Some people may have "reasons" but none of those are valid. 8)
by SparkOut
Tue Jan 19, 2021 8:41 am
Forum: Android Deployment
Topic: mobilePickPhoto Save the Photo
Replies: 2
Views: 274

Re: mobilePickPhoto Save the Photo

The short answer, specialFolderPath("resources") is read only.
On mobile, you will need to write to specialFolderPath("documents") instead.
If necessary, "resources" bundled with the standalone builder will need to be copied to "documents" on first run of the app.
by SparkOut
Mon Jan 18, 2021 10:07 pm
Forum: Off-Topic
Topic: Only Connect
Replies: 10
Views: 481

Re: Only Connect

It means Ali Lloyd has been competing in a quiz/puzzle show on UK television called "Only Connect", and his team won in the episode aired tonight. Rooting for the win! (But Ali won't be allowed to say yet, although it will have been filmed already.) I also suspect Ali might be a bit tired today, aft...
by SparkOut
Mon Jan 18, 2021 9:31 pm
Forum: Off-Topic
Topic: Only Connect
Replies: 10
Views: 481

Only Connect

Just seen the episode on TV tonight. Congrats on going through, Ali.

You'll already know, of course, but I hope you continue through to the final and win.
by SparkOut
Sun Jan 17, 2021 8:48 pm
Forum: Talking LiveCode
Topic: Not a number is a number, problem
Replies: 21
Views: 820

Re: Not a number is a number, problem

Hi I am both "Craig" and "dunbarx". Dual personality, you know. But once you have your imported data fully "inside" LC, can't you replace "NAN" with some other string ("NON", just so you can see it easily?), massage all your data as required, then restore the string "NAN" and lastly return that dat...
by SparkOut
Sun Jan 17, 2021 1:14 am
Forum: Talking LiveCode
Topic: Not a number is a number, problem
Replies: 21
Views: 820

Re: Not a number is a number, problem

I must confess not having executed Bernd's script, I suspected it was a demonstration of ASCII comparison rather than token evaluation. "NAN" > "Infinity" because of alphabetical order. I am not able to check what that script actually demonstrates, but I suspect there's more to it. But as for "NAN" ...
by SparkOut
Sat Jan 16, 2021 7:58 pm
Forum: Talking LiveCode
Topic: Not a number is a number, problem
Replies: 21
Views: 820

Re: Not a number is a number, problem

Hi Craig, I'm not sure what you mean "how do we deal with it"? If I set a value to be a string literal, I want that value to be treated as a string literal. This is a bug, needs to be reported and fixed in the engine, end of story. It matters not whether there's a reference to NaN or NAN or Not a Nu...
by SparkOut
Sat Jan 16, 2021 6:56 pm
Forum: Talking LiveCode
Topic: Not a number is a number, problem
Replies: 21
Views: 820

Re: Not a number is a number, problem

I confirm the same issue with comparison of variables containing "NAN" failing when they should be identical literal strings on Windows LC 9.6.2-rc2 You can "solve" the issue by forcing evaluation of the variable thus: on xTest put "NAN,HTH,42" into inLine put "NAN" into aCode if value(item 1 of inL...

Go to advanced search