Search found 1319 matches

by Dixie
Sat Feb 13, 2016 11:46 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Get the name of device and OS version [Solved]
Replies: 3
Views: 2256

Re: Get the name of device and OS version

Not the name, but you can fetch the current device's unique system identifier with the iphoneSystemIdentifier() function. This returns a string in the standard UUID/GUID format.... To get the version of iPhoneOS the application is running on, use the systemVersion
by Dixie
Mon Feb 08, 2016 8:55 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Current Location
Replies: 4
Views: 2989

Re: Current Location

Just tested under LC8 (DP14)... works fine, in the sim and on device.. on openStack if environment() = "mobile" then mobileStartTrackingSensor "location", true end if end openStack on locationChanged latitude, longitude set the theCurrentLocation of this stack to latitude & comma & longitude put lat...
by Dixie
Sun Feb 07, 2016 8:47 pm
Forum: Databases
Topic: Need to use single quotes ' '
Replies: 1
Views: 2446

Re: Need to use single quotes ' '

An example of using single quotes in a SQL query from liveCode...

Code: Select all

get revDataFromQuery( tab, return, theDataRef, "SELECT * FROM calloutcatsub where contract='" & contractarea & "';")
by Dixie
Wed Feb 03, 2016 11:42 pm
Forum: iOS Deployment
Topic: task switch results in app being restarted
Replies: 4
Views: 4266

Re: task switch results in app being restarted

Are you opening a browser built in the app or passing the URL off to safari ?
by Dixie
Mon Feb 01, 2016 11:13 pm
Forum: iOS Deployment
Topic: mobilepick
Replies: 6
Views: 5149

Re: mobilepick

iphonePickDate still works on iOS... as in..

Code: Select all

on mouseUp
   iphonePickDate "date",0 ,0 , the seconds,1,"Cancel"
   put the result into theDate
   convert theDate to long date
   answer theDate
end mouseUp
I use this to choose a date of birth... the maximum limit being today's date
by Dixie
Sun Jan 31, 2016 7:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mobileSensorAvailable ("location")
Replies: 38
Views: 17404

Re: mobileSensorAvailable ("location")

Ah, OK... I'll bow out here as I have not ever looked at this 'lesson'... and don't have the time to go through it...
by Dixie
Sun Jan 31, 2016 7:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mobileSensorAvailable ("location")
Replies: 38
Views: 17404

Re: mobileSensorAvailable ("location")

Ok then, I'll bite... When does tMessage get populated ?
by Dixie
Sun Jan 31, 2016 6:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mobileSensorAvailable ("location")
Replies: 38
Views: 17404

Re: mobileSensorAvailable ("location")

Well, what do you expect ?.. the variable tMessage as you have populated it does not have two linea !
by Dixie
Sun Jan 31, 2016 6:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mobileSensorAvailable ("location")
Replies: 38
Views: 17404

Re: mobileSensorAvailable ("location")

Use '&' instead of 'and' I think data is a reserved word... try something like thedata for the variable name... Spend time reading the 'user manual'...:-( if miles < 2 then put line 2 of thedata & return after field "displayMessage" set the backgroundcolor of button "Location" to yellow answer line ...
by Dixie
Sat Jan 30, 2016 9:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mobileSensorAvailable ("location")
Replies: 38
Views: 17404

Re: mobileSensorAvailable ("location")

Make a new Card Make three fields Make a button... put a set of coordinates into fld 1 put a set of coordinates into fld 2 put the following into the script of the button... on mouseDown /*lat/long from first set of coordinates */ put item 1 of fld 1 * pi/180 into lat1 put item 2 of fld 1 * pi/180 i...
by Dixie
Sat Jan 30, 2016 7:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mobileSensorAvailable ("location")
Replies: 38
Views: 17404

Re: mobileSensorAvailable ("location")

Ok... What exactly are you trying to do ?... Are you trying to find the distance between two sets of lat/long coordinates ?
by Dixie
Sat Jan 30, 2016 6:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mobileSensorAvailable ("location")
Replies: 38
Views: 17404

Re: mobileSensorAvailable ("location")

What is (400/6911) ?.. what does it represent ?
by Dixie
Thu Jan 28, 2016 7:37 am
Forum: Talking LiveCode
Topic: Odd script behaviour (aka Beware of Inline Coding)
Replies: 13
Views: 8303

Re: Odd script behaviour (aka Beware of Inline Coding)

The first 'if' statement is looking for 'end if'... You could have constructed your handler :- if tNoteID is empty then put getUUID() into tNoteID end if if deleteNote(tNoteID, tNotesFile) = 0 then answer "Error saving note." exit mouseUp      end if or to use 'else if'... on mouseUp if tNoteID is e...
by Dixie
Tue Jan 26, 2016 12:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Words among a field
Replies: 7
Views: 4732

Re: Words among a field

Code: Select all

on mouseUp
   if "red" is among the words of line 1 of fld 1 AND "blue" is among the words of line 1 of fld 1 then
      beep
   end if
end mouseUp
by Dixie
Sat Jan 23, 2016 5:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: String Substitution
Replies: 3
Views: 2867

Re: String Substitution

Hi... Your script... local vSeason local tSearch put "Summer time" into vSeason put "Things are always hot during vSeason" into tSearch put tSearch if you run this it will return vSeason... run this to return "Things are always hot during Summer time" local vSeason local tSearch put "Summer time" in...

Go to advanced search