how to detect x64 vs. x86?

2012-09-27 Thread Phil Davis
I know this has been discussed before, but my search reveals nothing. So 
I ask.


On Windows, is there a variable / shell command / registry entry my app 
can look at to see whether the OS is 32- or 64-bit? It would be nice if 
you could do it the same way across Vista, 7, 8; but I'll settle for 
what exists.


Thanks so much!

--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: how to detect x64 vs. x86?

2012-09-27 Thread Thierry Douez
Hi Phil,

Maybe enough to start with?

@echo off

ver | find “2003″ > nul
if %ERRORLEVEL% == 0 goto v2003

ver | find “XP” > nul
if %ERRORLEVEL% == 0 goto vxp

ver | find “2000″ > nul
if %ERRORLEVEL% == 0 goto v2000

ver | find “NT” > nul
if %ERRORLEVEL% == 0 goto vnt

echo Unknow OS Version.
goto exit

:v2003
:Run Windows 2003 specific commands here.
goto exit

:vxp
:Run Windows XP specific commands here.
goto exit

:v2000
:Run Windows 2000 specific commands here.
goto exit

:vnt
:Run Windows NT-specific commands here.
goto exit

:exit



HTH,

Thierry

2012/9/27 Phil Davis :
> I know this has been discussed before, but my search reveals nothing. So I
> ask.
>
> On Windows, is there a variable / shell command / registry entry my app can
> look at to see whether the OS is 32- or 64-bit? It would be nice if you
> could do it the same way across Vista, 7, 8; but I'll settle for what
> exists.
>
> Thanks so much!
>
> --
> Phil Davis
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: how to detect x64 vs. x86?

2012-09-27 Thread Thierry Douez
Hi again,

Maybe worth a look at:

http://forums.techguy.org/7927375-post8.html

HTH,

Thierry


2012/9/27 Thierry Douez :
> Hi Phil,
>
> Maybe enough to start with?
>
> @echo off
>
> ver | find “2003″ > nul
> if %ERRORLEVEL% == 0 goto v2003
>
> ver | find “XP” > nul
> if %ERRORLEVEL% == 0 goto vxp
>
> ver | find “2000″ > nul
> if %ERRORLEVEL% == 0 goto v2000
>
> ver | find “NT” > nul
> if %ERRORLEVEL% == 0 goto vnt
>
> echo Unknow OS Version.
> goto exit
>
> :v2003
> :Run Windows 2003 specific commands here.
> goto exit
>
> :vxp
> :Run Windows XP specific commands here.
> goto exit
>
> :v2000
> :Run Windows 2000 specific commands here.
> goto exit
>
> :vnt
> :Run Windows NT-specific commands here.
> goto exit
>
> :exit
>
>
>
> HTH,
>
> Thierry
>
> 2012/9/27 Phil Davis :
>> I know this has been discussed before, but my search reveals nothing. So I
>> ask.
>>
>> On Windows, is there a variable / shell command / registry entry my app can
>> look at to see whether the OS is 32- or 64-bit? It would be nice if you
>> could do it the same way across Vista, 7, 8; but I'll settle for what
>> exists.
>>
>> Thanks so much!
>>
>> --
>> Phil Davis
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: how to detect x64 vs. x86?

2012-09-27 Thread Matthias Rebbe
Hi Phil,

the registry key

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx

should help.

Regards,

Matthias

--
--
Matthias Rebbe
matthias (at) rebbe.tk
Tel +49.5741.31
Tel +49.160.5504462
--
"Life is too short for boring code"








Am 27.09.2012 um 09:05 schrieb Phil Davis :

> I know this has been discussed before, but my search reveals nothing. So I 
> ask.
> 
> On Windows, is there a variable / shell command / registry entry my app can 
> look at to see whether the OS is 32- or 64-bit? It would be nice if you could 
> do it the same way across Vista, 7, 8; but I'll settle for what exists.
> 
> Thanks so much!
> 
> -- 
> Phil Davis
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: how to detect x64 vs. x86?

2012-09-27 Thread Richmond

On 27/09/12 10:05, Phil Davis wrote:
I know this has been discussed before, but my search reveals nothing. 
So I ask.


On Windows, is there a variable / shell command / registry entry my 
app can look at to see whether the OS is 32- or 64-bit? It would be 
nice if you could do it the same way across Vista, 7, 8; but I'll 
settle for what exists.


It would be nice, regardless of the operating system.

AND, ideally something within Livecode that is cross-platform.



Thanks so much!




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android app - free vs. paid

2012-09-27 Thread Richard Miller
I have an Android app I've been selling only from my website. It works 
as a free version until the user enters an email address matched to a 
paid-for entry in a database (meaning, they can pay for the full version 
from my site, when then upgrades the status of their email address in a 
central database). I'd like to submit this app to Google Play.


I realize Google Play won't accept this upgrade method. This leaves me 
two choices:


1. Create and submit to Google separate Free and Premium versions of the 
app.

2. Use an in-app purchase system (i.e. freemium model).

I've already designed and tested the in-app purchase upgrade code in my 
(now selling) IOS app. Is the code used for that identical to what I 
would use in the Android version? It's a simple non-consumable upgrade.


How do people suggest I proceed? Option 1 or 2?

Thanks.
Richard Miller

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: how to detect x64 vs. x86?

2012-09-27 Thread Richard Gaskin

Phil Davis wrote:

On Windows, is there a variable / shell command / registry entry my app
can look at to see whether the OS is 32- or 64-bit? It would be nice if
you could do it the same way across Vista, 7, 8; but I'll settle for
what exists.


On an exclusively 64-bit system you'll know it's 64-bit because LiveCode 
won't run. ;)


If it has 32-bit compatibility installed, what should the return value 
be for a function that asks whether the OS is 32-bit or 64-bit?


This might be a good thread for the improve list to work out syntax for 
a proposed new function.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: how to detect x64 vs. x86?

2012-09-27 Thread Mike Bonner
Not sure this applies to all versions of windows that can be either 64 or
32 bit, but..

It might work to see if: there is a folder "program files (x86)" (not
positive that is the correct way to specify it, not at windows right this
sec)

If the folder is there its 64 bit, if not its 32 bit.

On Thu, Sep 27, 2012 at 7:57 AM, Richard Gaskin
wrote:

> Phil Davis wrote:
>
>> On Windows, is there a variable / shell command / registry entry my app
>> can look at to see whether the OS is 32- or 64-bit? It would be nice if
>> you could do it the same way across Vista, 7, 8; but I'll settle for
>> what exists.
>>
>
> On an exclusively 64-bit system you'll know it's 64-bit because LiveCode
> won't run. ;)
>
> If it has 32-bit compatibility installed, what should the return value be
> for a function that asks whether the OS is 32-bit or 64-bit?
>
> This might be a good thread for the improve list to work out syntax for a
> proposed new function.
>
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting: http://www.fourthworld.com
>  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>  Follow me on Twitter:  
> http://twitter.com/**FourthWorldSys
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android, Ubuntu, and the JDK

2012-09-27 Thread Richard Gaskin

Mark Wieder wrote:


Have any of you been able to successfully set up Android building from
LC 5.5.2 under Ubuntu?


Don't know about ubuntu, but in fedora it was happy when I pointed it to
/usr/lib/java-1.6.0/jvm/java-1.6.0-openjdk


Thanks for that, Mark.  With your encouragement that Open JDK works, I 
looked into this further and found the source of the issue:  I had 
installed the 64-bit version of the JDK, but of course LiveCode is still 
32-bit.  Once I installed the 32-bit JDK 6.0 and pointed LiveCode to 
that it built without issue.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SafeWallet

2012-09-27 Thread Bob Sneidar
Thanks Bill. I was actually looking for SafeWallet. Someone created a 16 
character password with symbols in it in compliance with the apps 
recommendations, and are now kicking themselves every time they have to unlock 
their app. This should be a lesson to all developers. ALWAYS give users a way 
to change their password. 

Bob


On Sep 26, 2012, at 5:47 PM, William Vlahos wrote:

> Bob,
> 
> Yes InfoWallet is me.
> 
> Bill Vlahos


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrids with no UI

2012-09-27 Thread Bob Sneidar
That sounds great Peter. I'm definitely interested.

Bob


On Sep 26, 2012, at 6:25 PM, Peter Haworth wrote:

> Hi Todd,
> I'm not sure of your timeframe but you might be interested in a product I'm
> working on, liquidSQL.  It will eliminate the scripting and SQL statement
> coding for a high percentage of the functions in an application, leaving
> you to deal with the more complex ones.
> 
> It will bind columns (including fields, option menus, radio buttons,
> checkboxes) in datagrids to rows in an SQL table, and controls on a card to
> individual columns in a table or SQL expressions.  It's not limited to
> datagrids though, you will be able to use scrolling fields, tables, option
> menus, as the container for rows you retrieve, or no container at all, just
> next/prev/first/last buttons to browse through the data.
> 
> It will handle the formatting of data such as dates and currency and handle
> validation checks of user entered data.
> 
> The user will be able to specify selection criteria by simply typing into
> fields on the form( or selecting from option menus) if you allow that, or
> you can predefine the data to be selected.
> 
> It will handle the display/entry of data from multiple tables on one stack
> (eg invoice header, invoice lines), figuring out how the tables are linked
> together automatically in most circumstances, and will automatically handle
> the display of data from foreign keys.
> 
> You will be able to automatically generate stack layouts for a specified
> table, or you can drag/drop controls from a built in palette to create a
> layout yourself.
> 
> I'm in the later stage of development right now and would hope to have beta
> available within a couple of months.
> 
> Pete
> lcSQL Software 
> 
> 
> 
> On Wed, Sep 26, 2012 at 5:43 PM, Todd Geist wrote:
> 
>> 
>> On Sep 26, 2012, at 4:10 PM, Monte Goulding 
>> wrote:
>> 
>>> If you work out how to get a library to listen to changes in a datagrid
>> (which you will need to do if you want to bind it to a table) then could
>> you post it on the list. I have a custom control (mergDataGridScroller)
>> that needs to know when the data is changed. At the moment it requires you
>> to dispatch updateContentRect to it after changing the datagrid data but if
>> it could listen to changes it would be nicer. I can't se anything in the
>> api that helps me with that though.
>> 
>> 
>> Will do.
>> 
>> 
>>> 
>>> PS there was database binding in the ide a few years back. I think it
>> was taken out because it wasn't used.
>> 
>> Yeah, I remember.  But that was quite a few years back.
>> 
>> I am simply unwilling to do wire this stuff up by hand every time.  I
>> would rather gargle thumbtacks.  Either I find a way to effectively do data
>> binding or I am moving on.
>> 
>> I am very spoiled by 20 years of doing DB stuff in FileMaker where the
>> binding is all done for you. FileMaker has it limits though, and it would
>> be nice to break free of those as well. I just want something in the middle.
>> 
>> 
>> 
>> 
>> Todd
>> 
>> --
>> Todd Geist
>> 
>> http://www.geistinteractive.com
>> 805-419-9382
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android, Ubuntu, and the JDK

2012-09-27 Thread Bob Sneidar
How is it, after all these years, 64 vs. 32 bit is still biting us in the butt? 
(Or should it be butting us in the bit?) Just a rhetorical query.

Bob


On Sep 27, 2012, at 8:26 AM, Richard Gaskin wrote:

> Mark Wieder wrote:
> 
>>> Have any of you been able to successfully set up Android building from
>>> LC 5.5.2 under Ubuntu?
>> 
>> Don't know about ubuntu, but in fedora it was happy when I pointed it to
>> /usr/lib/java-1.6.0/jvm/java-1.6.0-openjdk
> 
> Thanks for that, Mark.  With your encouragement that Open JDK works, I looked 
> into this further and found the source of the issue:  I had installed the 
> 64-bit version of the JDK, but of course LiveCode is still 32-bit.  Once I 
> installed the 32-bit JDK 6.0 and pointed LiveCode to that it built without 
> issue.
> 
> --
> Richard Gaskin


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrids with no UI

2012-09-27 Thread Peter Haworth
I'll add you to my ever growing list of interested parties.
Pete
lcSQL Software 



On Thu, Sep 27, 2012 at 9:26 AM, Bob Sneidar  wrote:

> That sounds great Peter. I'm definitely interested.
>
> Bob
>
>
> On Sep 26, 2012, at 6:25 PM, Peter Haworth wrote:
>
> > Hi Todd,
> > I'm not sure of your timeframe but you might be interested in a product
> I'm
> > working on, liquidSQL.  It will eliminate the scripting and SQL statement
> > coding for a high percentage of the functions in an application, leaving
> > you to deal with the more complex ones.
> >
> > It will bind columns (including fields, option menus, radio buttons,
> > checkboxes) in datagrids to rows in an SQL table, and controls on a card
> to
> > individual columns in a table or SQL expressions.  It's not limited to
> > datagrids though, you will be able to use scrolling fields, tables,
> option
> > menus, as the container for rows you retrieve, or no container at all,
> just
> > next/prev/first/last buttons to browse through the data.
> >
> > It will handle the formatting of data such as dates and currency and
> handle
> > validation checks of user entered data.
> >
> > The user will be able to specify selection criteria by simply typing into
> > fields on the form( or selecting from option menus) if you allow that, or
> > you can predefine the data to be selected.
> >
> > It will handle the display/entry of data from multiple tables on one
> stack
> > (eg invoice header, invoice lines), figuring out how the tables are
> linked
> > together automatically in most circumstances, and will automatically
> handle
> > the display of data from foreign keys.
> >
> > You will be able to automatically generate stack layouts for a specified
> > table, or you can drag/drop controls from a built in palette to create a
> > layout yourself.
> >
> > I'm in the later stage of development right now and would hope to have
> beta
> > available within a couple of months.
> >
> > Pete
> > lcSQL Software 
> >
> >
> >
> > On Wed, Sep 26, 2012 at 5:43 PM, Todd Geist  >wrote:
> >
> >>
> >> On Sep 26, 2012, at 4:10 PM, Monte Goulding <
> mo...@sweattechnologies.com>
> >> wrote:
> >>
> >>> If you work out how to get a library to listen to changes in a datagrid
> >> (which you will need to do if you want to bind it to a table) then could
> >> you post it on the list. I have a custom control (mergDataGridScroller)
> >> that needs to know when the data is changed. At the moment it requires
> you
> >> to dispatch updateContentRect to it after changing the datagrid data
> but if
> >> it could listen to changes it would be nicer. I can't se anything in the
> >> api that helps me with that though.
> >>
> >>
> >> Will do.
> >>
> >>
> >>>
> >>> PS there was database binding in the ide a few years back. I think it
> >> was taken out because it wasn't used.
> >>
> >> Yeah, I remember.  But that was quite a few years back.
> >>
> >> I am simply unwilling to do wire this stuff up by hand every time.  I
> >> would rather gargle thumbtacks.  Either I find a way to effectively do
> data
> >> binding or I am moving on.
> >>
> >> I am very spoiled by 20 years of doing DB stuff in FileMaker where the
> >> binding is all done for you. FileMaker has it limits though, and it
> would
> >> be nice to break free of those as well. I just want something in the
> middle.
> >>
> >>
> >>
> >>
> >> Todd
> >>
> >> --
> >> Todd Geist
> >> 
> >> http://www.geistinteractive.com
> >> 805-419-9382
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: artificially causing a field to be left in a script

2012-09-27 Thread Dr. Hawkins
On Tue, Sep 25, 2012 at 9:59 PM,   wrote:
> on mouseLeave
>   focus on nothing
> end mouseLeave

focus on nothing seems to have possibilities here . . . but not from
the mouse, as someone is likely to have reached the field by tab (in
fact, probably)

If I put the focus on nothing in a script, though, won't the script
finish running before the focus?

textChanged also seems to be a good solution--I can put a handler in
the card.  All I need to do is flip the "dirty" flag for the data, to
make sure it gets saved.

thanks to all

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: how to detect x64 vs. x86?

2012-09-27 Thread Phil Davis

Wow! Lots of great answers! As usual. Thanks everyone.

Phil



On 9/27/12 7:42 AM, Mike Bonner wrote:

Not sure this applies to all versions of windows that can be either 64 or
32 bit, but..

It might work to see if: there is a folder "program files (x86)" (not
positive that is the correct way to specify it, not at windows right this
sec)

If the folder is there its 64 bit, if not its 32 bit.

On Thu, Sep 27, 2012 at 7:57 AM, Richard Gaskin
wrote:


Phil Davis wrote:


On Windows, is there a variable / shell command / registry entry my app
can look at to see whether the OS is 32- or 64-bit? It would be nice if
you could do it the same way across Vista, 7, 8; but I'll settle for
what exists.


On an exclusively 64-bit system you'll know it's 64-bit because LiveCode
won't run. ;)

If it has 32-bit compatibility installed, what should the return value be
for a function that asks whether the OS is 32-bit or 64-bit?

This might be a good thread for the improve list to work out syntax for a
proposed new function.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  
http://twitter.com/**FourthWorldSys

__**_
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/**mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SafeWallet

2012-09-27 Thread Andre Garzia
On Thu, Sep 27, 2012 at 1:25 PM, Bob Sneidar  wrote:

> This should be a lesson to all developers. ALWAYS give users a way to
> change their password.


Bob,

I don't think this is true. If the encrypted information is sensitive then,
in my humble opinion, having a way to change their password without
providing the current one is a security vulnerability. I think that the
convenience of being able to forget the password you set is not worth the
risk of somebody else getting the data by doing the same procedure.

Of course this only holds for sensitive data for common stuff then this is
more than reasonable and desired. For example, if my browser bookmarks are
encrypted, having such feature would be great but if we're talking about an
app that collects stuff as sensitive as my credit card passwords then
nothing should ever touch that without the password.



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: artificially causing a field to be left in a script

2012-09-27 Thread Bob Sneidar
You would need to put it in a mouseUp handler in any button a user can click on 
while editing. If someone tabs out of the field, and the field has been 
altered, closeField will get sent ok. The issue is clicking a button, and only 
with OS X (if memory serves me, which is to say check it yourself). 

This brings up another point I have run into with editing data destined for a 
database. I don't really like to update data directly to a database as soon as 
I leave a field, because it is always possible in a multi-user system that 
someone got to the field and edited after another user reads it but before they 
update it. That means the first user will believe the column contains his edit, 
when actually it contains the edit of the second user who saved first. Sounds 
confusing but it can happen. 

To avoid this, I usually include a way to enter an edit mode, as opposed to a 
browse mode. In edit mode I unlock the editable fields and save a copy of the 
data, which I populate the fields with. When the user exits edit mode I lock 
them again. This keeps the user from being able to edit the contents of a field 
when he is not in edit mode and getting the mistaken impression his edits will 
be saved. I then give the user the option to cancel or save. Upon saving I lock 
the table, then check the saved copy of the original data against the table 
data. If it is the same, I update the data, otherwise I alert the user and drop 
him back into edit mode with the updated data. 

Obviously, if yours is not a multi-user system, most of that doesn't apply, but 
I do like to give the user clear feedback on what mode he is in. I know 
Filemaker writes to the database upon exiting the field, or going to another 
record. I never liked that. 

Bob


On Sep 27, 2012, at 10:08 AM, Dr. Hawkins wrote:

> On Tue, Sep 25, 2012 at 9:59 PM,   wrote:
>> on mouseLeave
>>  focus on nothing
>> end mouseLeave
> 
> focus on nothing seems to have possibilities here . . . but not from
> the mouse, as someone is likely to have reached the field by tab (in
> fact, probably)
> 
> If I put the focus on nothing in a script, though, won't the script
> finish running before the focus?
> 
> textChanged also seems to be a good solution--I can put a handler in
> the card.  All I need to do is flip the "dirty" flag for the data, to
> make sure it gets saved.
> 
> thanks to all
> 
> -- 
> Richard E. Hawkins, Esq.
> (702) 508-8462
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SafeWallet

2012-09-27 Thread Bob Sneidar
You may misunderstand me. I don't mean there should be a way to change it if 
you don't know it. I would call that a reset. I mean there should be a way to 
change it given that you DO know the old password. The option to reset the 
password if it is forgotten is wrought with problems, but with certain 
applications may be necessary. 

The only way I can see to implement it is to be able to contact the developer 
who has personal information that the user submitted when registering the app. 
The developer would need the ability to unlock the app and reset the default 
admin password without being able to get to the data. 

Of course it all depends on the app, and the nature of the data being stored. 
It might not be worth it. On the other hand, if it were an accounting app with 
the last 10 years of accounting data in it, and a disgruntled IT guy locked you 
out as he was leaving, you would definitely need a way to recover. 

Bob


On Sep 27, 2012, at 10:42 AM, Andre Garzia wrote:

> On Thu, Sep 27, 2012 at 1:25 PM, Bob Sneidar  wrote:
> 
>> This should be a lesson to all developers. ALWAYS give users a way to
>> change their password.
> 
> 
> Bob,
> 
> I don't think this is true. If the encrypted information is sensitive then,
> in my humble opinion, having a way to change their password without
> providing the current one is a security vulnerability. I think that the
> convenience of being able to forget the password you set is not worth the
> risk of somebody else getting the data by doing the same procedure.
> 
> Of course this only holds for sensitive data for common stuff then this is
> more than reasonable and desired. For example, if my browser bookmarks are
> encrypted, having such feature would be great but if we're talking about an
> app that collects stuff as sensitive as my credit card passwords then
> nothing should ever touch that without the password.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Card Names

2012-09-27 Thread Peter Haworth
It would appear that a card shown in the App Browser with a name like "card
id 1002" (in other words, the default name when the card was created)
doesn't really have that name, or maybe any name at all.

I get a runtime error when I try to refer to a card like that by name, e.g.
card "card id 1002" of stack "xyz" and in the message box:

put the ID of card "card ID 1002" of stack "xyz"

... returns an error "can't find card", even though I can see it in the App
Browser

If I rename the card, everything works OK.

This seems like pretty strange behavior so wondering if anyone else sees it.

LC 5.5.0, OSX 10.7.4

Pete
lcSQL Software 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Scott Rossi
I think the name is shown for reference, in lieu of an assigned name.
You need to refer to the card like you do an object:

 put the ID of card ID 1002 of stack "xyz"

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 9/27/12 3:25 PM, "Peter Haworth"  wrote:

>It would appear that a card shown in the App Browser with a name like
>"card
>id 1002" (in other words, the default name when the card was created)
>doesn't really have that name, or maybe any name at all.
>
>I get a runtime error when I try to refer to a card like that by name,
>e.g.
>card "card id 1002" of stack "xyz" and in the message box:
>
>put the ID of card "card ID 1002" of stack "xyz"
>
>... returns an error "can't find card", even though I can see it in the
>App
>Browser
>
>If I rename the card, everything works OK.
>
>This seems like pretty strange behavior so wondering if anyone else sees
>it.
>
>LC 5.5.0, OSX 10.7.4
>
>Pete
>lcSQL Software 
>___
>use-livecode mailing list
>use-livecode@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Bob Sneidar
Yup. Cards with no name... well... have no name. LC is faking it. I'm trying to 
think how this would be useful, but I cannot. I think cards are the only thing 
this happens with. Odd huh? Wanna know what is even odder? If you delete the 2 
in the name, then type it back in again, it now has a name. 

Bob


On Sep 27, 2012, at 3:25 PM, Peter Haworth wrote:

> It would appear that a card shown in the App Browser with a name like "card
> id 1002" (in other words, the default name when the card was created)
> doesn't really have that name, or maybe any name at all.
> 
> I get a runtime error when I try to refer to a card like that by name, e.g.
> card "card id 1002" of stack "xyz" and in the message box:
> 
> put the ID of card "card ID 1002" of stack "xyz"
> 
> ... returns an error "can't find card", even though I can see it in the App
> Browser
> 
> If I rename the card, everything works OK.
> 
> This seems like pretty strange behavior so wondering if anyone else sees it.
> 
> LC 5.5.0, OSX 10.7.4
> 
> Pete
> lcSQL Software 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Mark Wieder
Peter Haworth  writes:

> This seems like pretty strange behavior so wondering if anyone else sees it.

Unless I *know* that a card has a name I don't refer to its name, just its id.
And its long id if I can get away with it.

...I've been known to ask

if word 2 of the short name of card x is "id" then

...but that's pretty cheesy.

-- 
 Mark Wieder
 mwie...@ahsoftware.net




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Mike Bonner
Its possible to cause this issue with other objects by accident. Happens to
me once in a while when typing on a laptop with a trackpad.  Accidental
selections wiping out the objects name in the inspector. When you come back
to it later it shows the id like cards do. Of course then if you click in
the box and make any change (as bob mentioned) space at the end, whatever,
then the name "sticks."

This also explains why I turn my trackpad off and use a mouse so that my
fumble fingers don't get me in trouble.
On Thu, Sep 27, 2012 at 4:49 PM, Bob Sneidar  wrote:

> Yup. Cards with no name... well... have no name. LC is faking it. I'm
> trying to think how this would be useful, but I cannot. I think cards are
> the only thing this happens with. Odd huh? Wanna know what is even odder?
> If you delete the 2 in the name, then type it back in again, it now has a
> name.
>
> Bob
>
>
> On Sep 27, 2012, at 3:25 PM, Peter Haworth wrote:
>
> > It would appear that a card shown in the App Browser with a name like
> "card
> > id 1002" (in other words, the default name when the card was created)
> > doesn't really have that name, or maybe any name at all.
> >
> > I get a runtime error when I try to refer to a card like that by name,
> e.g.
> > card "card id 1002" of stack "xyz" and in the message box:
> >
> > put the ID of card "card ID 1002" of stack "xyz"
> >
> > ... returns an error "can't find card", even though I can see it in the
> App
> > Browser
> >
> > If I rename the card, everything works OK.
> >
> > This seems like pretty strange behavior so wondering if anyone else sees
> it.
> >
> > LC 5.5.0, OSX 10.7.4
> >
> > Pete
> > lcSQL Software 
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Peter Haworth
Yes, that's my conclusion too.  As you say, it's easy to find another way
to refer to the card.  It's just very puzzling why the IDE wouldn't just
set the name property to "card ID 1002" when the card is created instead of
showing incorrect information in the App Browser.
Pete
lcSQL Software 



On Thu, Sep 27, 2012 at 3:34 PM, Scott Rossi  wrote:

> I think the name is shown for reference, in lieu of an assigned name.
> You need to refer to the card like you do an object:
>
>  put the ID of card ID 1002 of stack "xyz"
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
>
>
>
>
> On 9/27/12 3:25 PM, "Peter Haworth"  wrote:
>
> >It would appear that a card shown in the App Browser with a name like
> >"card
> >id 1002" (in other words, the default name when the card was created)
> >doesn't really have that name, or maybe any name at all.
> >
> >I get a runtime error when I try to refer to a card like that by name,
> >e.g.
> >card "card id 1002" of stack "xyz" and in the message box:
> >
> >put the ID of card "card ID 1002" of stack "xyz"
> >
> >... returns an error "can't find card", even though I can see it in the
> >App
> >Browser
> >
> >If I rename the card, everything works OK.
> >
> >This seems like pretty strange behavior so wondering if anyone else sees
> >it.
> >
> >LC 5.5.0, OSX 10.7.4
> >
> >Pete
> >lcSQL Software 
> >___
> >use-livecode mailing list
> >use-livecode@lists.runrev.com
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> >http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Scott Rossi
IMO, I don't think it's a good idea to name things using "id xyz" since
that's a specific way to refer to objects.  In theory you could name a
card "card id 4001" while its id is 1004, but that seems like a recipe for
confusion.  Just like it's not a good idea to name a control using only a
number because it's possible for scripts to get confused, i.e. button "7".

In any event, watch what happens if you delete the name of an object that
was previously named -- it shows up in the inspector as "button id 1004"
or similar.  The card referencing behavior is consistent with objects: if
a control has no name, refer to it by its id.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 9/27/12 4:45 PM, "Peter Haworth"  wrote:

>Yes, that's my conclusion too.  As you say, it's easy to find another way
>to refer to the card.  It's just very puzzling why the IDE wouldn't just
>set the name property to "card ID 1002" when the card is created instead
>of
>showing incorrect information in the App Browser.
>Pete
>lcSQL Software 
>
>
>
>On Thu, Sep 27, 2012 at 3:34 PM, Scott Rossi 
>wrote:
>
>> I think the name is shown for reference, in lieu of an assigned name.
>> You need to refer to the card like you do an object:
>>
>>  put the ID of card ID 1002 of stack "xyz"
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX Design
>>
>>
>>
>>
>> On 9/27/12 3:25 PM, "Peter Haworth"  wrote:
>>
>> >It would appear that a card shown in the App Browser with a name like
>> >"card
>> >id 1002" (in other words, the default name when the card was created)
>> >doesn't really have that name, or maybe any name at all.
>> >
>> >I get a runtime error when I try to refer to a card like that by name,
>> >e.g.
>> >card "card id 1002" of stack "xyz" and in the message box:
>> >
>> >put the ID of card "card ID 1002" of stack "xyz"
>> >
>> >... returns an error "can't find card", even though I can see it in the
>> >App
>> >Browser
>> >
>> >If I rename the card, everything works OK.
>> >
>> >This seems like pretty strange behavior so wondering if anyone else
>>sees
>> >it.
>> >
>> >LC 5.5.0, OSX 10.7.4
>> >
>> >Pete
>> >lcSQL Software 
>> >___
>> >use-livecode mailing list
>> >use-livecode@lists.runrev.com
>> >Please visit this url to subscribe, unsubscribe and manage your
>> >subscription preferences:
>> >http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>___
>use-livecode mailing list
>use-livecode@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: artificially causing a field to be left in a script

2012-09-27 Thread Dr. Hawkins
On Thu, Sep 27, 2012 at 10:42 AM, Bob Sneidar  wrote:
> You would need to put it in a mouseUp handler in any button a user can click 
> on
>while editing. If someone tabs out of the field, and the field has been 
>altered,
>closeField will get sent ok. The issue is clicking a button, and only with OS 
>X (if
>memory serves me, which is to say check it yourself)>

Since all I really need out of this is to set a flag, I set a
textChanged handler, which sets the changed to true.


> This brings up another point I have run into with editing data destined for a
>database. I don't really like to update data directly to a database as soon as 
>I leave
>a field, because it is always possible in a multi-user system that someone got 
>to the
>field and edited after another user reads it but before they update it. That 
>means
>the first user will believe the column contains his edit, when actually it 
>contains the
>edit of the second user who saved first. Sounds confusing but it can happen.

I've been pondering this, as I'll be going multi-user shortly.

My thinking so far is to lock the record in the SQL database upon
load.  If someone else tries to access, they would be informed of
read-only status (and offered a chance to break the lock if it's old
enough.)

Stepping a bit past that, I think I'll be caching data locally into
sqlite, and have a co-program pumping the updates from that back to
the cloud--the latency I'm seeing at the moment isn't acceptable for
individual fields.

...

> Obviously, if yours is not a multi-user system, most of that doesn't apply, 
> but I do
>like to give the user clear feedback on what mode he is in. I know Filemaker 
>writes
>to the database upon exiting the field, or going to another record. I never 
>liked that.

Yuk.  That should be user and/or program dependent.  Then again, HyperCard . . .

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


SoCal LUG next Thurs, Oct 4 in Pasadena

2012-09-27 Thread Richard Gaskin
Just a quick reminder that the next SoCal LiveCode User Group meeting 
will be held in Pasadena on Thursday, 4 October, at 7PM - details here:




--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Peter Haworth
On Thu, Sep 27, 2012 at 4:56 PM, Scott Rossi  wrote:

> IMO, I don't think it's a good idea to name things using "id xyz" since
> that's a specific way to refer to objects.  In theory you could name a
> card "card id 4001" while its id is 1004, but that seems like a recipe for
> confusion.  Just like it's not a good idea to name a control using only a
> number because it's possible for scripts to get confused, i.e. button "7".
>

I'd definitely agree with that, which it all the more strange that the IDE
does it.


> In any event, watch what happens if you delete the name of an object that
> was previously named -- it shows up in the inspector as "button id 1004"
> or similar.  The card referencing behavior is consistent with objects: if
> a control has no name, refer to it by its id.
>

Interesting.  I've never deleted the name of a control (at least knowingly)
so have never seen that behavior.  It's not quite the same as cards since
newly created controls do get a real name assigned to them like "button" or
"field".  Despite the consistency aspect, I still think it's strange
behavior.

No problem referring to a card by it's ID when it has no name - the trick
is how to figure out that it has no name since there is nothing to stop
someone naming a card in a way that makes it look like the
default-but-non-existent name.  I just switched over to using card IDs
instead of names. This is in my lcStackBrowser plugin so I have no control
over how someone names their objects.



>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
>
>
>
>
> On 9/27/12 4:45 PM, "Peter Haworth"  wrote:
>
> >Yes, that's my conclusion too.  As you say, it's easy to find another way
> >to refer to the card.  It's just very puzzling why the IDE wouldn't just
> >set the name property to "card ID 1002" when the card is created instead
> >of
> >showing incorrect information in the App Browser.
> >Pete
> >lcSQL Software 
> >
> >
> >
> >On Thu, Sep 27, 2012 at 3:34 PM, Scott Rossi 
> >wrote:
> >
> >> I think the name is shown for reference, in lieu of an assigned name.
> >> You need to refer to the card like you do an object:
> >>
> >>  put the ID of card ID 1002 of stack "xyz"
> >>
> >> Regards,
> >>
> >> Scott Rossi
> >> Creative Director
> >> Tactile Media, UX Design
> >>
> >>
> >>
> >>
> >> On 9/27/12 3:25 PM, "Peter Haworth"  wrote:
> >>
> >> >It would appear that a card shown in the App Browser with a name like
> >> >"card
> >> >id 1002" (in other words, the default name when the card was created)
> >> >doesn't really have that name, or maybe any name at all.
> >> >
> >> >I get a runtime error when I try to refer to a card like that by name,
> >> >e.g.
> >> >card "card id 1002" of stack "xyz" and in the message box:
> >> >
> >> >put the ID of card "card ID 1002" of stack "xyz"
> >> >
> >> >... returns an error "can't find card", even though I can see it in the
> >> >App
> >> >Browser
> >> >
> >> >If I rename the card, everything works OK.
> >> >
> >> >This seems like pretty strange behavior so wondering if anyone else
> >>sees
> >> >it.
> >> >
> >> >LC 5.5.0, OSX 10.7.4
> >> >
> >> >Pete
> >> >lcSQL Software 
> >> >___
> >> >use-livecode mailing list
> >> >use-livecode@lists.runrev.com
> >> >Please visit this url to subscribe, unsubscribe and manage your
> >> >subscription preferences:
> >> >http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >___
> >use-livecode mailing list
> >use-livecode@lists.runrev.com
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> >http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Message Equivalent of TextChanged for Graphics?

2012-09-27 Thread Scott Rossi
LC now has a textChanged message that gets sent when text in a field is
changed by the user.

Is there an equivalent message for when a the fill or color of a graphic has
been changed?  Or is the only option to run a looping script that checks for
changes in visual properties?

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Scott Rossi
If you're trying to manage card references, did you consider using
numbers?  Card numbers are unique in the context of a stack.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 9/27/12 5:31 PM, "Peter Haworth"  wrote:

>No problem referring to a card by it's ID when it has no name - the trick
>is how to figure out that it has no name since there is nothing to stop
>someone naming a card in a way that makes it look like the
>default-but-non-existent name.  I just switched over to using card IDs
>instead of names. This is in my lcStackBrowser plugin so I have no control
>over how someone names their objects.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


More weirdness

2012-09-27 Thread Peter Haworth
This is not a new one, but my latest problem has to do with code that
doesn't appear to get executed unless there is a breakpoint in the code.

In the past, this happened in preOpenxxx handlers and the consensus was
that it was a timing issue of some sort. Now I'm getting it in a mouseUp
button script.

The code in question simply loads lines into a scrolling list based on the
mainstacks that are open at the time.

When I run the stack toplevel, all works fine.

When I run the stack as a plugin without the breakpoint, the scrolling list
field is not populated, no runtime error, no indication of any error of any
sort. With the breakpoint, everything works perfectly.  I can even replace
the breakpoint with a put command to display something in the message box
and that makes it work also.

But even that's not the weird part.  Once I have made the thing work using
a breakpoint or a put, I can take that code out and all works fine  At
least in the current run of the stack. Restarting LC and loading the plugin
again takes me back to the non-working scenario.

So now I'm stuck in a situation where It is impossible to debug this
problem, yet I need to get this working.

I hope he long time Livecode advocates on the list will have to forgive me
when I say that this sort of thing makes me question how much I would want
to rely on LC for critical projects.


Pete
lcSQL Software 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread Peter Haworth
Thanks for the tip Scott.  In this case, I think IDs will work fine.  I
know they can change but my code is working on a card that is selected by
the user on the screen so it's immediate, I'm not storing the ID away for
later use.
Pete
lcSQL Software 



On Thu, Sep 27, 2012 at 5:38 PM, Scott Rossi  wrote:

> If you're trying to manage card references, did you consider using
> numbers?  Card numbers are unique in the context of a stack.
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrids with no UI

2012-09-27 Thread Robert Mann
Hi all! I take the occasion to inform the list that I shall make available a
new data structure that i called dbStack. It is a stack that uses arrays in
custom properties, on cards, to store any kind of data. But it keeps the
analogy of stack/cards/fields. The basic idea I followed was that fields are
"doubled" by arrays in custom props, so that "physical" fields can be turned
off or on. There is a simple API to add, modify delete output data and
produce various kinds of arrays to work with datas.

The main target is to use on revserver as data stacks for the many sites
that do not need a full dbase and that need more a hierarchical database
than a full relational one. On of the advantage is you can edit the stack
off line and dump it online. So it's a good companion for simple dynamic
websites where it is handy to have just a bit more than files but not to
bother about an sql dbase. it's also handy to be able to store & retrieve
directly arrays.

My main use if for a simple hierarchical database with navigation data
(fathers, sons.; etc..), to store original datas and pre-complied html pages
of websites and find a good balance between dynamic and static html. So it
is coupled with a special home made ftp html editor.

I found out it is also a very handy data storage for programming when it is
used as a dbase substack.

I do not know yet if I will give it to the community of add it to the list
of commercial plugins, it'll depend on how much time it takes to polish
document etc... But i'll welcome any encouragement! is anybody interested???
Robert







--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/DataGrids-with-no-UI-tp4655423p4655496.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: More weirdness

2012-09-27 Thread Mark Wieder
Pete-

Thursday, September 27, 2012, 6:18:38 PM, you wrote:

> This is not a new one, but my latest problem has to do with code that
> doesn't appear to get executed unless there is a breakpoint in the code.

Without some actual code to look at it's hard to make a relevant
comment.

However, lack of relevance has never stopped me before. Thus...

1. You won't see runtime errors in plugin stacks. They're treated the
same as system stacks.
2. Putting something (anything) into the messagebox has cleared up
errors for me in the past as well. When that happens it turns out that
the code context isn't quite what I expected. Usually a different
object has the focus or something like that. A few well-placed logging
lines should tell you what's up.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: More weirdness

2012-09-27 Thread Mike Bonner
Next time this happens, go into the script in the editor, put a space in or
type ANYTHING to set the dirty bit (as mentioned you cna delete it
afterwards)

hit the apply button and then save the stack and see if it works.

This is another one that.. well i can't recall how it actually occurs, but
there was a thread about it on the forums somewhere that I can't find.
 What was happening is that the script was put into place but not applied
(despite the editor window being closed) On opening it is still there, the
apply button is greyed out since no changes have happened since the fresh
opening of the un-applied script.  Hitting a key to set the dirty bit
allows you to go ahead and apply the script and voila' it works again.



On Thu, Sep 27, 2012 at 7:18 PM, Peter Haworth  wrote:

> This is not a new one, but my latest problem has to do with code that
> doesn't appear to get executed unless there is a breakpoint in the code.
>
> In the past, this happened in preOpenxxx handlers and the consensus was
> that it was a timing issue of some sort. Now I'm getting it in a mouseUp
> button script.
>
> The code in question simply loads lines into a scrolling list based on the
> mainstacks that are open at the time.
>
> When I run the stack toplevel, all works fine.
>
> When I run the stack as a plugin without the breakpoint, the scrolling list
> field is not populated, no runtime error, no indication of any error of any
> sort. With the breakpoint, everything works perfectly.  I can even replace
> the breakpoint with a put command to display something in the message box
> and that makes it work also.
>
> But even that's not the weird part.  Once I have made the thing work using
> a breakpoint or a put, I can take that code out and all works fine  At
> least in the current run of the stack. Restarting LC and loading the plugin
> again takes me back to the non-working scenario.
>
> So now I'm stuck in a situation where It is impossible to debug this
> problem, yet I need to get this working.
>
> I hope he long time Livecode advocates on the list will have to forgive me
> when I say that this sort of thing makes me question how much I would want
> to rely on LC for critical projects.
>
>
> Pete
> lcSQL Software 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: More weirdness

2012-09-27 Thread J. Landman Gay

On 9/27/12 8:18 PM, Peter Haworth wrote:


When I run the stack toplevel, all works fine.

When I run the stack as a plugin without the breakpoint, the scrolling list
field is not populated, no runtime error, no indication of any error of any
sort. With the breakpoint, everything works perfectly.  I can even replace
the breakpoint with a put command to display something in the message box
and that makes it work also.

But even that's not the weird part.  Once I have made the thing work using
a breakpoint or a put, I can take that code out and all works fine  At
least in the current run of the stack. Restarting LC and loading the plugin
again takes me back to the non-working scenario.


Sounds like the defaultstack is being reset, or not being set in the 
first place. What's in the result when it fails?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Card Names

2012-09-27 Thread J. Landman Gay

On 9/27/12 7:31 PM, Peter Haworth wrote:


No problem referring to a card by it's ID when it has no name - the trick
is how to figure out that it has no name since there is nothing to stop
someone naming a card in a way that makes it look like the
default-but-non-existent name.


if there is a card "card id 1234"...

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


bring LC to front after a launch command

2012-09-27 Thread Thierry Douez
Hi all,

IS there a Livecode way to bring back to front LC
after doing a "launch app" command ?

The app  is still running.

Regards,

Thierry

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Message Equivalent of TextChanged for Graphics?

2012-09-27 Thread William Vlahos
The textChanged message still isn't triggered by a script changing the text. Is 
there a message that is generated when anything changes the text of a field?

Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.
lcTaskList: (http://www.infowallet.com/lctasklist/index.htm)
RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61)

On Sep 27, 2012, at 5:33 PM, Scott Rossi  wrote:

> LC now has a textChanged message that gets sent when text in a field is
> changed by the user.
> 
> Is there an equivalent message for when a the fill or color of a graphic has
> been changed?  Or is the only option to run a looping script that checks for
> changes in visual properties?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode