Search found 66 matches

by Xero
Mon Jun 15, 2020 8:40 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set image correctly
Replies: 4
Views: 323

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: 384

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: 361

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: 361

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...
by Xero
Tue Jun 02, 2020 12:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (SOLVED) Change all values of Elements in Key of Array
Replies: 6
Views: 361

(SOLVED) Change all values of Elements in Key of Array

Hi, I feel like this should be a really straight forwards process, but for the life of me, I can't work out how to get it done! Arrays!!! Ok, I have a database of accounts (SQL), that I am loading into a livecode file and displaying in a datagrid. I have scripted all of the SQL search, change, write...
by Xero
Fri May 08, 2020 3:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Constrain Graphic dimensions
Replies: 3
Views: 346

Re: Constrain Graphic dimensions

on mousedown Get current size end mousedown on resize Get new size of one thing Put (new size)/(old size) into scalefactor Set the new size of the other thing to oldsize * scalefactor end resize Just depends on what you want to do with the resizing (i.e. whether you want the text size to dictate the...
by Xero
Fri May 08, 2020 1:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Constrain Graphic dimensions
Replies: 3
Views: 346

Re: Constrain Graphic dimensions

Should be a simple maths trick.
How do you want them to be constrained? Do you want the rhombus to resize relative to the text, the text relative to the rhombus, or do you want the rhombus to change shape (be wider) so the text fits in the rhombus?
Xero
by Xero
Mon May 04, 2020 5:30 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Line Graph: Double X Entrys
Replies: 12
Views: 1078

Re: Line Graph: Double X Entrys

You have a repeated 5 in your first graph as well...
No idea how to fix it, but it seems where you have a double number value, you're getting a repeat...
X
by Xero
Wed Apr 29, 2020 2:14 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: give roles randomly
Replies: 9
Views: 852

Re: give roles randomly

Xero. I would have 1-9 in a list, select a random number from 1 to 9, assign that number to player 1, then delete that item of the list. See my handler offering, the third post in the thread. I do just that, not relying on a large sortKey. I have done it that way for decades. Craig Clearly reading ...
by Xero
Tue Apr 28, 2020 7:37 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: give roles randomly
Replies: 9
Views: 852

Re: give roles randomly

on giveRole put "1,2,3,4,5,6,7,8,9" into theList sort items of theList by random(10000) repeat with N = 1 to 9 put item N of theList into fld ("playerRole" & N) end repeat end giveRole put "theres no such object". ive put playerRole" space and all numbers from 1 to 9. Is the problem that it's not g...
by Xero
Tue Apr 28, 2020 7:17 am
Forum: Multimedia
Topic: Image Colour Profiles
Replies: 2
Views: 746

Re: Image Colour Profiles

I've had the same issue when it comes to an app I wrote that added grids, picked colours etc. When I imported a jpeg with sRGB profile, I could save the image into a custom file, and when I opened the custom file (which had data to recreate gridlines etc.), the image worked just fine. When I used an...
by Xero
Thu Apr 23, 2020 4:27 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Select keyword (command, not keyword)
Replies: 1
Views: 267

Re: Select keyword

Try looking at select (command) in dictionary, instead of select (keyword)
In the dictionary, it goes into what select after means...
XdM
by Xero
Wed Apr 22, 2020 5:29 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting a Number Range from 1 to X
Replies: 5
Views: 557

Re: Getting a Number Range from 1 to X

Gonna take a stab in the dark on this one, as I haven't used the pdf viewer in livecode. In theory, I guess, you want a dropdown menu that automatically fills with number from 1 to the number of pages in your pdf, which when clicked on, takes you to the page... First, how are you viewing the pdf? XP...
by Xero
Tue Apr 07, 2020 1:44 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Choose randomly in a list
Replies: 5
Views: 484

Re: Choose randomly in a list

What previous posters have said to solve your problem... I think you've slipped up with your syntax... hello so im making a game where you need to draw something random in a list. so on mouseUp, the app needs to pick a random word to draw and display it in a field. i wanted to do something like on m...
by Xero
Mon Apr 06, 2020 4:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: video player stops playing videos in list
Replies: 16
Views: 1177

Re: video player stops playing videos in list

At least we found something that worked.
Hone in on your code for the folder part and you''ll probably solve your problem.
Good luck!
X

Go to advanced search