Search found 10 matches

by diobosco
Thu Feb 15, 2024 11:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Multiple palette stacks
Replies: 10
Views: 4153

Re: Multiple palette stacks

Hello I am trying to redesign an app using multiple palettes. That raises the question what the best approach would be considering that buttons of palette A might influence the appearance and/or behaviour of palette B and C (and vice versa). I just want to understand the best way how to design this ...
by diobosco
Sat Dec 28, 2019 3:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to deal with more than one optional parameters in a function?
Replies: 5
Views: 3222

Re: How to deal with more than one optional parameters in a function?

I deal with that situation like this: function myFunc param1, param2 if param1 is empty then put defaultValue1 into param1 end if if param2 is empty then put defaultValue2 into param2 end if do_things_here_with_param1_and_param2 end myFunc and then you can call myFunc as any of put myFunc() # defau...
by diobosco
Sat Dec 28, 2019 2:19 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to deal with more than one optional parameters in a function?
Replies: 5
Views: 3222

Re: How to deal with more than one optional parameters in a function?

Hi Craig Thanks for your response. I had a function in mind that has a default mode when the optional parameter is not passed but could initiate a special handling once the parameter is given. I have a function that reads some data input and can create 4 different types of arrays based on a paramete...
by diobosco
Fri Dec 27, 2019 7:08 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Loading Data into an array similiar to the Data Statement in BASIC
Replies: 5
Views: 4111

Re: Loading Data into an array similiar to the Data Statement in BASIC

dunbarx wrote:
Fri Dec 27, 2019 4:39 pm
Hi.

Can you give a short example, including just a little bit of data?

I am with Bogs, that there are simpler methods. But I would need a test case to get a better idea of what you are up to.

Craig
Hi Craig
Sorry, I answered to your post in a separate message in this thread. Pls see there.
by diobosco
Fri Dec 27, 2019 7:05 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Loading Data into an array similiar to the Data Statement in BASIC
Replies: 5
Views: 4111

Re: Loading Data into an array similiar to the Data Statement in BASIC

Hello Diobosco, welcome to the forum (finally) :D The method you arrived at is interesting, but seems a hard way to go at it. After all, you could put the hard-coded data into one (or several) custom properties, and then either use it directly or put each into an array using combine. If the data ch...
by diobosco
Fri Dec 27, 2019 6:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to deal with more than one optional parameters in a function?
Replies: 5
Views: 3222

How to deal with more than one optional parameters in a function?

Hi Forum! I have a question with regards to optional parameters in a function/handler. Calling a function with one parameter is easy: put myfunc(para1) into tDest. Even in case that para1 is an optional parameter it doesn't create any problem. In the function script we could we could ask whether par...
by diobosco
Fri Dec 27, 2019 5:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Loading Data into an array similiar to the Data Statement in BASIC
Replies: 5
Views: 4111

Re: Loading Data into an array similiar to the Data Statement in BASIC

@bogs: I am aware of custom properties which I really don't like. You won't believe it but I started with them in my project and discarded them after the handling of them in the IDE drove me nuts. I am not talking about dealing with them on a script level. That is easy but managing them in the IDE b...
by diobosco
Fri Dec 27, 2019 12:22 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Loading Data into an array similiar to the Data Statement in BASIC
Replies: 5
Views: 4111

Loading Data into an array similiar to the Data Statement in BASIC

Being an observer of this forum and everything related to Livecode since many years on below radar mode (incl. being a kickstart-supporter of the open-source initiative) I now found the courage to contribute to the forum. But being a new contributor to the forum it is part of the forum etiquette to ...
by diobosco
Sun Mar 31, 2019 1:41 pm
Forum: Mac OS
Topic: Warning - LiveCode not optimised for Mac
Replies: 10
Views: 8348

Re: Warning - LiveCode not optimised for Mac

I have the same problem getting this message. I am using LC 9.0.2 Business Edition on macOS 10.14.1 (18B75).

I believe the Autoupdater module of LC is raising this issue. At least what the macos OS report is telling Section Software - older Software:
Screenshot.png
Screenshot.png (18.14 KiB) Viewed 7763 times

Best
Bernardo
by diobosco
Sun Mar 31, 2019 1:30 pm
Forum: Mac OS
Topic: BBEdit 12.5 Language module for LC
Replies: 32
Views: 36640

Re: BBEdit 12.5 Language module for LC

I am interested

Go to advanced search