Search found 77 matches

by Xero
Sat Nov 14, 2020 4:36 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to search between two dates in livecode.
Replies: 7
Views: 331

Re: How to search between two dates in livecode.

If you're still setting up your SQL database, then there are a few more steps in setting up the database, accessing it, etc. There are some really good tutorials for that stuff on the Livecode page/ forum. The search between dates function, not so much. I muddled around for a while, and now have a v...
by Xero
Fri Nov 13, 2020 2:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to search between two dates in livecode.
Replies: 7
Views: 331

Re: How to search between two dates in livecode.

If you are using an SQL database... here's the code I use: local sDatabaseID local sClientDatabaseID local tSQL command setDatabaseID pDatabaseID put pDatabaseID into sDatabaseID end setDatabaseID function getDatabaseID return sDatabaseID end getDatabaseID on preOpenCard local tDatabasePath, tDataba...
by Xero
Fri Nov 06, 2020 12:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: HTML linking to referenced images
Replies: 7
Views: 575

Re: HTML linking to referenced images

How are you "referencing" your images? If you are using relative paths, when you shift your app/HTML5, then the relative links won't go with it. If you're using absolute paths, then it should find it, as long as it has access to the link (i.e. if your path is linking to you hard-drive, and you're ac...
by Xero
Mon Oct 26, 2020 10:38 am
Forum: Multimedia
Topic: Steganography Coder
Replies: 5
Views: 1563

Re: Steganography Coder

Thanks Richard.
Probably a mild increase in speed, but not noticeable. I will need to add a speed check to see what old vs new is. May be good for larger files, as every % decrease will make a big difference.
Thanks.
XdM
by Xero
Mon Oct 26, 2020 5:44 am
Forum: Multimedia
Topic: Steganography Coder
Replies: 5
Views: 1563

Re: Steganography Coder

I tried to post the stack, but couldn't, even in a zipped file, due to size limitations. I don't have any space elsewhere to post it either sadly! It will take a few minutes to reconstruct, but everything is in the post. All cut and paste, with a few numbers to change. If anyone wants, I can send th...
by Xero
Mon Oct 26, 2020 4:26 am
Forum: Multimedia
Topic: Steganography Coder
Replies: 5
Views: 1563

Steganography Coder

Hi people! Just thought I'd drop this in here for a bit of fun. I found an article online about encoding images into the RGB channel of other images, and thought that might be a fun little Livecode project to test my skills on. I couldn't attach the stack here because of size issues of attachments.....
by Xero
Wed Oct 21, 2020 3:48 pm
Forum: Multimedia
Topic: Export Snapshot into Card
Replies: 7
Views: 533

Re: Export Snapshot into Card

Klaus...
You've done it again!
I don't think I could finish any new ideas without you!
"text" instead of "imagedata" has worked. Not sure why, but it's good to go.
I'll post the stack here when it's a little more polished. A nice fun little image manipulator.
X
by Xero
Wed Oct 21, 2020 12:09 pm
Forum: Multimedia
Topic: Export Snapshot into Card
Replies: 7
Views: 533

Export Snapshot into Card

OK... I have been running in circles and need the brainstrust again! I have a substack that has a field with text in it. I want to convert the card into an image (jpeg) so I can use that as part of an image manipulation. The image will then be read as Black or White pixels, and "inserted" into anoth...
by Xero
Tue Oct 20, 2020 9:59 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: HTML5 Deployment
Replies: 5
Views: 601

Re: HTML5 Deployment

Last time I tried to deploy HTML5, the engine was massive. Huge. Time consuming to download and run.
Maybe just give it a little more time to load and run.
I am sure there are better ways of getting HTML5 up and running...
X
by Xero
Tue Oct 06, 2020 6:39 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Moving and expanding Text Field Objects
Replies: 7
Views: 699

Re: Moving and expanding Text Field Objects

I have had a load of trouble with objects of all kinds when moving AND resizing. What Craig says holds true. The object (field) is moved by it's anchor point unless you tell it otherwise. Objects are resized around their anchor point. The left, right, top and bottom will move when resizing, so you n...
by Xero
Tue Sep 29, 2020 4:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rounding to the nearest 1/16
Replies: 7
Views: 508

Re: Rounding to the nearest 1/16

I am sure there's an easier way of doing this... --have a field called 'field' that you put the measurement you want to round into. put fld "field" into tMeasurement --round that measurement either way-- put round(tMeasurement*16,0) / 16 into theFinalMeasurement --check if the result is less than or...
by Xero
Mon Jun 15, 2020 8:40 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set image correctly
Replies: 4
Views: 584

Re: Set image correctly

Or dummy image and field off visible screen that moves to onscreen and set the contents of the field and the image to be the same as the image you want to show. put "x,y,z, whatever" into fld "msi" and for the image there will be some way of setting the properties of the image to match another image...
by Xero
Tue Jun 09, 2020 4:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: linear search
Replies: 6
Views: 665

Re: linear search

Try this: global arrayNumbers global targetNumber on mouseUp initialise getValue targetNumber search targetNumber, arrayNumbers end mouseUp on initialise put empty into field output put 0 into targetNumber put 45 into arrayNumbers[0] put 65 into arrayNumbers[1] put 23 into arrayNumbers[2] put 67 int...
by Xero
Tue Jun 02, 2020 4:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (SOLVED) Change all values of Elements in Key of Array
Replies: 6
Views: 644

Re: Change all values of Elements in Key of Array

Danke Klaus! here's the code I ended up using to change the date in each line from dd/mm/yyyy to yyyy/mm/dd put the dgdata of group "Accounts" into theDataA --put into array put the keys of theDataA into tKeys set the itemdelimiter to "/" repeat for each line tKey in tKeys put theDataA[tKey]["Date"]...
by Xero
Tue Jun 02, 2020 3:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (SOLVED) Change all values of Elements in Key of Array
Replies: 6
Views: 644

Re: Change all values of Elements in Key of Array

Thanks Craig. I think I have no idea what you just said. However, I managed to get a script written that kind of does what I need it to. But kind of doesn't... on mouseup repeat with x= 1 to the number of fields of group "Accounts" if field x of group "Accounts" contains "/" then set the itemdelimit...

Go to advanced search