Search found 13530 matches

by Klaus
Wed Aug 15, 2012 3:18 pm
Forum: Databases
Topic: How Can I Save Changes To SQLite Database?
Replies: 37
Views: 29092

Re: How Can I Save Changes To SQLite Database?

Hi Jim, Hi Klaus, you obviously did not take a look at UPDATE example in the "SQLite Sampler.rev" stack, where you can see a working example of the UPDATE syntax. Well, I actually did check this sample out and I found it difficult to follow. I would also say, its not exactly a "working example" sinc...
by Klaus
Wed Aug 15, 2012 1:50 pm
Forum: Talking LiveCode
Topic: Deleting files using a Wild Card and clear all Globals
Replies: 8
Views: 4357

Re: Deleting files using a Wild Card and clear all Globals

The difference between "repeat with i = X" and "repeat fore each" will only be noticable
when it comes to < 1000's of cds/lines etc.

But then the difference is HUGE! :D
by Klaus
Wed Aug 15, 2012 1:05 pm
Forum: Databases
Topic: How Can I Save Changes To SQLite Database?
Replies: 37
Views: 29092

Re: How Can I Save Changes To SQLite Database?

Hi Jim, you obviously did not take a look at UPDATE example in the "SQLite Sampler.rev" stack, where you can see a working example of the UPDATE syntax. Hint: "revdb_execute" is a function! ... put "UPDATE Questions SET XX = '" & lblX & "' WHERE _id='" & txtID & "'" into tSQLQuery put revdb_execute(...
by Klaus
Wed Aug 15, 2012 12:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How can I know an image downloaded?
Replies: 10
Views: 7083

Re: How can I know an image downloaded?

Hi Paul, why not download into a variable first, check this and then save to disk on success? ... put url t_img_url into tImageVariable ## Network problem? if the result <> empty then ## error exit HANDLERNAME end if ## check content of variable: if tImageVariable contains "404" then ## or maybe ......
by Klaus
Wed Aug 15, 2012 11:55 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Newbie Image Resizing Question...
Replies: 7
Views: 4940

Re: Newbie Image Resizing Question...

Hi Paul ... Using my example: if my image area is 200x100 and the remote image is 600x200, what is see in my image area is 200x100. If I inspect its size, it is 200x100. So I can no longer resize it in the way I want. I must be missing something?--paul This sound as if your image is "locLock"ed! In ...
by Klaus
Wed Aug 15, 2012 11:45 am
Forum: Databases
Topic: How Can I Save Changes To SQLite Database?
Replies: 37
Views: 29092

Re: How Can I Save Changes To SQLite Database?

Forget RealBasic, there is no equivalent to these commands in Livecode!

Stupid question: Did you ever EXECUTE tSQLQuery?
by Klaus
Tue Aug 14, 2012 6:22 pm
Forum: Talking LiveCode
Topic: Deleting files using a Wild Card and clear all Globals
Replies: 8
Views: 4357

Re: Deleting files using a Wild Card and clear all Globals

Hi Jack :D

I'm afraid this is not much faster than: repeat with i = 1 to the num of cds

One shouldn't have too many cards anyway :D


Best

Klaus

EDIT:
Corrected an ugly syntax error 8)
by Klaus
Tue Aug 14, 2012 5:02 pm
Forum: iOS Deployment
Topic: iOS Sound Recognition
Replies: 10
Views: 8413

Re: iOS Sound Recognition

You mean "Speech Recognition" à la SIRI? 8)
Huh, a BIG task, I think...

Monte? :D
by Klaus
Tue Aug 14, 2012 4:51 pm
Forum: Databases
Topic: How Can I Save Changes To SQLite Database?
Replies: 37
Views: 29092

Re: How Can I Save Changes To SQLite Database?

Hi Jim, given that: lblX = a valid column name txtID = a valid ID and your database field ID is really named: _id Then this should work: UPDATE Questions SET Column_name = 'content_of_fld_lblx' WHERE _id='1' Add an ANSWER to check your SQL string! ... put "UPDATE Questions SET XX = '" & lblX & "' WH...
by Klaus
Tue Aug 14, 2012 1:09 pm
Forum: Talking LiveCode
Topic: Deleting files using a Wild Card and clear all Globals
Replies: 8
Views: 4357

Re: Deleting files using a Wild Card and clear all Globals

Hi Nakia, well, there are two possibilities top use repeat": 1. repeat with i = 1 to the num of lines of fld XYZ ## do someting with "line i of fld XYZ" end repeat This will do for most cases and is fast enough for lots of repeats. But when unsing "repeat with x =..." the engine will always start to...
by Klaus
Tue Aug 14, 2012 12:11 pm
Forum: Databases
Topic: How Can I Save Changes To SQLite Database?
Replies: 37
Views: 29092

Re: How Can I Save Changes To SQLite Database?

Hi Knightlite, rs.Edit rs.field("XX").StringValue=trim(lblX.Text) rs.Update Fire2.Commit // Fire2 is the name of the database - Fire2.sqlite :?: :?: :?: 8) well, like all the other db commands you also need to create the appropriate SQL command for this, just like the other examples in the lessons y...
by Klaus
Tue Aug 14, 2012 11:44 am
Forum: Talking LiveCode
Topic: Deleting files using a Wild Card and clear all Globals
Replies: 8
Views: 4357

Re: Deleting files using a Wild Card and clear all Globals

Hi Nakia, 1. file operations do not work with wildcards! You need to get a list of the files, do your filtering and then apply your actions to the list of files. Like this (out of my head): ... put the folder into olddir ## Need this later for the list of ABSOLUTE pathnames put specialfolderpath("ca...
by Klaus
Tue Aug 14, 2012 10:29 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Does "post [variable] to URL" work from a revlet?
Replies: 7
Views: 3913

Re: Does "post [variable] to URL" work from a revlet?

Hi Paul,

I have been bitten by this before! :?
Add this line before every post/access to HTTPS connections:
...
libUrlSetSSLVerification false
post whatever to url "https://wherever.com/mycgi"
...

Its not documented, but should do the trick.


Best

Klaus
by Klaus
Tue Aug 14, 2012 9:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Internationalize an app?
Replies: 8
Views: 5318

Re: Internationalize an app?

Hi ju11,

I have a little stack with showing the "custom property set" solution.
Go to my page and scroll a little down to "CP-Sets1":
http://www.major-k.de/xtalk.html

That may get you started. :)


Best

Klaus
by Klaus
Mon Aug 13, 2012 6:58 pm
Forum: Android Deployment
Topic: Writing to and Reading from a File in Android
Replies: 26
Views: 15063

Re: Writing to and Reading from a File in Android

Hi John,

fingers crossed! :)


Best

Klaus

Go to advanced search