Search found 88 matches

by EddieLee
Fri Sep 11, 2020 3:38 pm
Forum: Android Deployment
Topic: Android splash
Replies: 6
Views: 252

Android splash

Hi all, I know that for Android the splash settings on the standalone setting doesn’t work, do you guys have a workaround for this? Currently it takes a few secs for my app to load and I don’t want the user to see a black screen. So I created a cd with an image and a loading scrollbar on the first c...
by EddieLee
Fri Sep 11, 2020 5:36 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Deleting contents inside a scroller and contents shift accordingly [Solved]
Replies: 3
Views: 162

Re: Deleting contents inside a scroller and contents shift accordingly

kdjanz wrote:
Fri Sep 11, 2020 5:10 am
Use a field with List behaviour?
Hi,

What do you mean?
by EddieLee
Fri Sep 11, 2020 4:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Deleting contents inside a scroller and contents shift accordingly [Solved]
Replies: 3
Views: 162

Deleting contents inside a scroller and contents shift accordingly [Solved]

Hi all,

Grp 1
Grp 2
Grp 3
Grp 4

Imagine these 4 grps are placed vertically on a card inside a scroller. What will be the best way that when a user deletes grp 1, grp 2,3,4 will move up. Delete grp 2, grp 3,4 will move up.
Assuming all the grp contains img, flds and widget.
Thanks !
by EddieLee
Fri Sep 04, 2020 2:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Whole numbers
Replies: 28
Views: 1122

Re: Whole numbers

The trunc function is super handy in that it removes everything after a decimal point, so super useful if you only need to look at the number before the decimal point. Because of that, you can do something like this to see if the trunc of a number is equal to a number, which means you've got a whol...
by EddieLee
Thu Sep 03, 2020 11:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Whole numbers
Replies: 28
Views: 1122

Whole numbers

Hi all,

Is there any livecode function or code that can detect if a variable is a whole number?

Code: Select all

Put a * b into c
If c is a whole number then
.......
Else
.......
End if
I can’t use contains “.” In this context or is there a decimal identifier as well in livecode?
by EddieLee
Thu Sep 03, 2020 7:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Android back button (Solved)
Replies: 3
Views: 177

Re: Android back button

Hi all,

Thanks everyone for your help! Totally forget about the recent card codes T.T
by EddieLee
Wed Sep 02, 2020 12:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Android back button (Solved)
Replies: 3
Views: 177

Android back button (Solved)

Hi all, I have a cd “homepage” and a cd “editpage”. There’s a code in the card script on my cd “editpage” that states: On backkey Go to cd “homepage” End backkey So what I’m trying to do now is when the user clicks on the back button in cd “editdishes” I do not want the preopencard handler of cd “ho...
by EddieLee
Tue Sep 01, 2020 12:22 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set the gradient of a graphic (Solved)
Replies: 1
Views: 146

Set the gradient of a graphic (Solved)

Hi all,

Is it possible to set a gradient of a graphic in livecode instead of setting it to a solid Color?

Thanks!
by EddieLee
Thu Aug 27, 2020 6:43 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: if and or statements not working as intended
Replies: 8
Views: 361

Re: if and or statements not working as intended

Eddie. Richard was more direct than I was, since I like to assign homework. if text of fld "search..." is not "Search" or text of fld "search" is not empty then "or" means that if either part of your two part conditional is true, it will fire: -- if the field is empty, the field does not contain "s...
by EddieLee
Wed Aug 26, 2020 6:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: if and or statements not working as intended
Replies: 8
Views: 361

Re: if and or statements not working as intended

FourthWorld wrote:
Wed Aug 26, 2020 5:58 pm
Change the first "or" to "and".
Hi,

I wonder why this work? I changed to and and it worked totally. Why wouldn’t or work?

Eddie
by EddieLee
Wed Aug 26, 2020 6:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: if and or statements not working as intended
Replies: 8
Views: 361

Re: if and or statements not working as intended

Eddie. It is hard to tell, because the code you posted has lots of syntax issues, mainly missing quotes. Rewriting to: on mouseup if text of fld "search..." is not "Search" or text of fld "search" is not empty then --(the following codes will happen) beep else put "Search ..." into fld "search" foc...
by EddieLee
Wed Aug 26, 2020 4:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: if and or statements not working as intended
Replies: 8
Views: 361

if and or statements not working as intended

Hi All, Anyone has the same issue as me ? i have this fld "search" with the following codes if text of fld "search" is not "Search ...” or text of fld "search" is not empty then (the following codes will happen) else put "Search ..." into fld "search” focus on nothing end if So when the user tries t...
by EddieLee
Tue Aug 25, 2020 11:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (Solved)Focus on nothing not working in preopencard
Replies: 4
Views: 261

Re: Focus on nothing not working in preopencard

Thierry wrote:
Tue Aug 25, 2020 8:54 am
Hi Eddie,

Did you tried to move it in the opencard handler?

HTH,

Thierry
Hi!

I tried putting the focus on nothing codes at the start and end of my opencard handler but whenever the app starts, the keyboard still shows up like its focused on some fld.

Thanks !
by EddieLee
Tue Aug 25, 2020 6:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (Solved)Focus on nothing not working in preopencard
Replies: 4
Views: 261

(Solved)Focus on nothing not working in preopencard

Hi all,

I have a fld “search” in cd “homepage” and whenever I start the app, the focus is always on fld “search”. I tried putting focus on nothing at the start and end of the preopencard handler but it still doesn’t work. Any idea why?

Thanks!
by EddieLee
Mon Aug 24, 2020 7:29 am
Forum: HTML5
Topic: Tutorial for setting up livecode to develop websites
Replies: 9
Views: 1609

Re: Tutorial for setting up livecode to develop websites

Hi,

But the HTML 5 can also work as a website as well as compared to a server?

Thanks!

Go to advanced search