Search found 123 matches

by andresdt
Thu Apr 14, 2022 5:47 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to put Hebrew text in my app?
Replies: 12
Views: 1152

Re: How to put Hebrew text in my app?

It may be that Android does not have the font used on the desktop. Try running the following code on desktop and Android to rule out font existence issue. code on a button on mouseUp local tFontName = "Linotype" --> tFontName is the name of the font you are using if tFontName is among the lines of (...
by andresdt
Tue Apr 12, 2022 4:18 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How can I get the app to update it from another APK file?
Replies: 9
Views: 957

Re: How can I get the app to update it from another APK file?

It works Thanks Hello I read this thread and while I was reading it I got the following thought or idea :idea: . If I create a launcher that checks to see if a stack exists on startup, in the resource folder. If it is not, the DOWNLOAD and then start it. Then you wouldn't have to package the whole ...
by andresdt
Fri Mar 25, 2022 1:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to use an array?
Replies: 24
Views: 2037

Re: How to use an array?

Salutations, I would like to replace the letters of the alphabet with numbers. A = 1 b = 2 c = 3 ... I thought I was using an array instead of a switch, 26 possibilities are too many, to find out what the letter is and extract its number. Besides the solutions given here, I can think of two others....
by andresdt
Tue Mar 15, 2022 9:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: subtracting two variables
Replies: 12
Views: 1095

Re: subtracting two variables

Samuele wrote:
Tue Mar 15, 2022 9:10 pm
Hi how can i put two subtracted variables in a third variable? for example

Code: Select all

put (Var1 - Var2) into Var3 #(this doesn't work)

Thanks!
that should work if both of your variables contain a number.

Code: Select all

if Var1 is a number and Var2 is a number then
  put Var1 - Var2 into Var3
end if
by andresdt
Tue Mar 08, 2022 3:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: read from file not working
Replies: 6
Views: 974

Re: read from file not working

I always use PUT URL

Code: Select all

PUT URL("File:" & TheflightPlan) Into Message
by andresdt
Sun Feb 13, 2022 3:08 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Plugin Settings not saving
Replies: 2
Views: 557

Re: Plugin Settings not saving

The IDE uses the cREVLoadInfo custom property to save plugin settings. So if your plugin is a code-only stack it is a plain text file. Any custom properties you put on your stack will be lost when you save and reopen your stack. You can try to set the values of your plugin configuration using getPro...
by andresdt
Fri Feb 04, 2022 10:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scripting tab
Replies: 19
Views: 2531

Re: Scripting tab

Create two fields and in the first place this code

Code: Select all

on enterinField
    focus on field 2
end enterinField

on returninField
    focus on field 2
end returninField

on textChanged
   focus on field 2
end textChanged
Is this what you need?
by andresdt
Fri Feb 04, 2022 6:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scripting tab
Replies: 19
Views: 2531

Re: Scripting tab

How does one write a script to effect the pressing of the tab key? The dictionary seems to indicate it can't be done, but there must be some workaround. Thanks, Dave Hi @dsquance Look this up in the "tabKey" dictionary Isn't that what you mean? taken from the LC dictionary on tabKey -- go forward i...
by andresdt
Fri Feb 04, 2022 4:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: delete variable arrayname does not work
Replies: 7
Views: 1019

Re: delete variable arrayname does not work

I wanted to make sure an array was empty before going into a repeat until routine. You can do this in other way, for example if tVariableArray is an array then put empty into tVariableArray it was good to learn that you shouldn't call the delete variable without having the variable initialized some...
by andresdt
Thu Feb 03, 2022 9:04 pm
Forum: Internet
Topic: How to check if there is internet connection?
Replies: 22
Views: 5693

Re: How to check if there is internet connection?

In addition to all the solutions given here, you can also use the url that the Firefox browser uses for this purpose.

Code: Select all

function internetConnection 
   return url("http://detectportal.firefox.com/") is "success"
end internetConnection
by andresdt
Wed Feb 02, 2022 7:56 pm
Forum: Talking LiveCode
Topic: ResizeStack oddities
Replies: 2
Views: 488

Re: ResizeStack oddities

:idea: :idea: mm reading the thread where this came from and reading the posts in this thread. I have an idea how what Trevor DeVore proposed can be "implemented" at https://quality.livecode.com/show_bug.cgi?id=7310 PS: It's in from the LiveCode Script and not in the engine as Trevor suggests. local...
by andresdt
Wed Feb 02, 2022 5:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Tooltip
Replies: 12
Views: 1696

Re: Tooltip

hi @Samuel, maybe what you are looking for is a "placeholder". If this is what you need you might want to check out the lesson https://lessons.livecode.com/m/4071/l/6 ... -behaviors
by andresdt
Tue Jan 25, 2022 1:05 am
Forum: Announcements
Topic: [ANN] TinyColor for LiveCode
Replies: 3
Views: 712

Re: [ANN] TinyColor for LiveCode

hello @Stam, we have solved all the problems that we have found. The demo is already working

https://github.com/Ferruslogic/TinyColo ... tag/v1.0.0
by andresdt
Fri Jan 21, 2022 5:08 pm
Forum: Announcements
Topic: [ANN] TinyColor for LiveCode
Replies: 3
Views: 712

[ANN] TinyColor for LiveCode

TinyColor is a popular JavaScript library. With a 4.1k star rating on GitHub. https://github.com/bgrins/TinyColor https://user-images.githubusercontent.com/37944516/150560141-cbf604c7-e08b-409a-9671-178254767243.svg We now have a version of this popular library for LiveCode. Written 100% in LiveCode...
by andresdt
Thu Jan 20, 2022 6:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: font in copy files not displaying
Replies: 2
Views: 617

Re: font in copy files not displaying

In my case, what I do when I want to include a font in my android app. It is, create a fonts folder in which I copy the .TTF files and copy the folder instead of the fonts.
That's how it works for me

Go to advanced search