Search found 1438 matches

by sturgis
Tue Jun 23, 2015 3:24 pm
Forum: Talking LiveCode
Topic: Simple handler crashes LC or worse
Replies: 7
Views: 4241

Re: Simple handler crashes LC or worse

As written, it just pian shouldn't work. When everything is resolved it ends up looking like the following: delete char 26 of char 12 to 16 of field 1 Or if there is only an insertion point.. delete char 29 - 1 of char 29 to 28 of field 1 Strangely, now I can't get it to crash, it doesn't actually d...
by sturgis
Mon Jun 22, 2015 4:19 am
Forum: Internet
Topic: @#! daylight saving time…
Replies: 1
Views: 3525

Re: @#! daylight saving time…

One thing I do, when the exact hour doesn't matter, is use 12:00 noon of the day in question to generate my seconds.

Code: Select all

put the date && "12:00 PM" into tDay
convert tDay to seconds 
This helps avoid the crankiness caused by daylight savings when calculating days between.
by sturgis
Mon Jun 22, 2015 4:10 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't save stack
Replies: 3
Views: 2646

Re: Can't save stack

I suspect you don't have rights to write to the sdk folder. Choose a different location. YOu can either browse to the documents folder, or prior to saving you can use the message box and execute "set the folder to specialfolderpath("documents") then try to save and it should open up the save dialog ...
by sturgis
Mon Jun 22, 2015 1:14 am
Forum: Mac OS
Topic: Yosemite, Server.app and LiveCode Server
Replies: 3
Views: 4146

Re: Yosemite, Server.app and LiveCode Server

Where are you editing the config files for apache? If you're doing it in the /etc hierarchy, that's not where the server app files are stored. Look in /Library/Server/web/config/apache2/ and dig around for what you need.
by sturgis
Mon Jun 22, 2015 1:09 am
Forum: Mac OS
Topic: Keydown Help..!
Replies: 7
Views: 8347

Re: Keydown Help..!

I notice you're using "spacebar" as the name of the parameter used in the keyDown handler. All that means is that you now have a local variable named "spacebar" with a numeric keycode value in it. To see what I mean, you should create a test handler.. on keyDown spacebar put spacebar -- will display...
by sturgis
Mon Jun 22, 2015 12:39 am
Forum: Talking LiveCode
Topic: Simple handler crashes LC or worse
Replies: 7
Views: 4241

Re: Simple handler crashes LC or worse

You're right, It seems the engine doesn't like trying to delete a char from a return value (IE delete char 104 of "char 94 to 93 of field 1") Its trying to delete a char from "the selectedchunk returned string, rather than the field. 7.0.5 spits up too. (though no hard crashes, just compiler errors ...
by sturgis
Mon Jun 22, 2015 12:00 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Creating an idle timer
Replies: 4
Views: 3623

Re: Creating an idle timer

If it were me, I'd keep a list of connected clients that includes "the seconds" of their last valid action. Perhaps even an in memory sqlite table. Then for the checks, you could use a send in time loop, check it every couple minutes. The pseudocode would be something like this.. on newConnection pV...
by sturgis
Sun Jun 21, 2015 11:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: 'repeat until the mouseClick' not work
Replies: 5
Views: 4713

Re: 'repeat until the mouseClick' not work

My guess would be that mouseclick() isn't actually supported on mobile. YOu might have to tweak things so that you use touchstart, touchend, or a combination of the two. I'm not sure if mouseclick is or is not supported on mobile.. The dictionary says it is, but it also says its supported on server ...
by sturgis
Fri Jun 05, 2015 2:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: lockLocation top of graphic "line" ??
Replies: 27
Views: 12842

Re: lockLocation top of graphic "line" ??

Ok. I'm stealing that. I thinko quite often.
by sturgis
Fri Jun 05, 2015 3:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: lockLocation top of graphic "line" ??
Replies: 27
Views: 12842

Re: lockLocation top of graphic "line" ??

I thought it was like "think or thwim" ThinkO for short.
by sturgis
Thu Jun 04, 2015 11:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: lockLocation top of graphic "line" ??
Replies: 27
Views: 12842

Re: lockLocation top of graphic "line" ??

Actually, setting the right of an object or the left of an object simply moves an existing object and doesn't change its size. Like setting the left of button 1 to the left of this card just moves it to the edge of the card. You would actually have to set the width of the object or change the rect o...
by sturgis
Thu Jun 04, 2015 8:45 pm
Forum: Talking LiveCode
Topic: Datagrid issue with Launcher/Splash screen..
Replies: 5
Views: 3211

Re: Datagrid issue with Launcher/Splash screen..

For future reference you might look here: http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid Basically, you shouldn't need to add a datagrid to your splash stack, but you DO need to trick the standalone builder into knowing it should include the ...
by sturgis
Fri Jan 23, 2015 4:34 pm
Forum: Internet
Topic: Display webpage without browser function
Replies: 8
Views: 7519

Re: Display webpage without browser function

If a user clicks on a link, before the navigation to the new URL is done, the message "browserbeforenavigate" is sent. Say you have a page with 3 links on it. And you only want one of the links to actually do something.. If your links are: htp://www.myurl.com/link1 htp://www.myurl.com/link2 htp://ww...
by sturgis
Mon Dec 22, 2014 4:51 pm
Forum: Games
Topic: Using Updatescreen in Game Loops (Game Academy)
Replies: 16
Views: 12402

Re: Using Updatescreen in Game Loops (Game Academy)

Great stuff, thanks for sharing. More stuff for me to read yay!

Go to advanced search