Re: UNIQUE CARD IDs

2011-08-04 Thread Shao Sean

Right after the cloning, set the cantDelete property to FALSE..

___
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: UNIQUE CARD IDs

2011-08-04 Thread Joe Lewis Wilkins
Sean, 

I considered that, since I have them set to cantDelete already, but I was too 
concerned that in cloning them, they would retain that property.

Thanks,

Joe Lewis Wilkins
Architect

On Aug 4, 2011, at 11:18 PM, Shao Sean wrote:

> You can always use the cantDelete property for the master form cards..
> 
> http://docs.runrev.com/Property/cantDelete
> 
> 
> # only run this after setting the cantDelete property to TRUE on the cards 
> you want to keep
> # every other card will be deleted, so exercise caution..
> 
> lock messages  -- suppresses the deleteCard message
> repeat for each line tCardID in the cardIDs of stack "yourStackNameHere"
>  try
>delete card id tCardID of stack "yourStackNameHere"
>  catch tErr
>  end try
> end repeat
> unlock messages
> 
> 
> The try statement allows you to run the delete command on the cards that have 
> the property set to true and not have the script stop to post an error saying 
> that the card cannot be deleted.

___
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: UNIQUE CARD IDs

2011-08-04 Thread Joe Lewis Wilkins
Thanks Bill,

I have too many references and cross references to the names of the various 
Basic Forms and they must continue to "work" even on the duplicated "copies" so 
what you suggest would not work. It's a pretty complex application. Some think 
I'm crazy to even attempt to solve the problems involved. Including me!

I've implemented things already and they appear to work well; and quite fast.

Joe Lewis Wilkins
Architect

On Aug 4, 2011, at 10:56 PM, Bill Vlahos wrote:

> Joe,
> 
> Could you change the name of the new duplicated card and then delete all the 
> cards with the duplicate name?
> 
> For example the original cards are names Form1, Form2, etc.
> 
> When you duplicate the Form1 card call the duplicate DupForm1, etc.
> 
> When you are all done simply loop through the cards and delete any that 
> contain "Dup".
> 
> Bill Vlahos
> _
> InfoWallet (http://www.infowallet.com) is about keeping your important life 
> information with you, accessible, and secure.
> 
> On Aug 4, 2011, at 1:34 PM, Joe Lewis Wilkins wrote:
> 
>> Bob, Jacque,
>> 
>> Thanks. Perhaps you might like to know how I plan to use IDs in my 
>> application.
>> 
>> One of the Modules (stacks) has 56 basic forms. I record the ID of those 
>> forms in a field on the first card of that Module.
>> 
>> Subsequently, circumstances on one or more of the other Modules requires 
>> that one or more of these "basic" forms be duplicated, sometimes a number of 
>> times; particularly while I'm testing things, I need to revert back to the 
>> original stack with its 56 basic forms. Substituting a copy of that Module 
>> for the one that has been modified doesn't work. LC always brings up the 
>> modified stack - regardless of what I may do; I can tediously go through and 
>> delete the newly created cards, but that soon gets too much for even my 
>> patience level. 
>> 
>> Now I will just cycle through the cards and delete those whose ID differs 
>> from the ones whose IDs I've stored in the field. I'm sure I'll find other 
>> uses for this technique at some other point. I just wanted to be 100% sure 
>> that I wasn't creating a FrankenCode monster. (smile) I had considered using 
>> a system of marked cards to achieve the same result, but I'm already using 
>> that to track the Forms that I'll want to print in the final reports and I 
>> confuse easily. (smile)
>> 
>> Thanks again,
>> 
>> Joe Wilkins
>> 
>> On Aug 4, 2011, at 12:52 PM, J. Landman Gay wrote:
>> 
>>> On 8/4/11 1:51 PM, Joe Lewis Wilkins wrote:
 Hi Jaqui,
 
 When new cards are created with the clone command, how sure can we be
 that the new card will be given a unique ID for the current stack?
>>> 
>>> 100% sure. As Bob said, no two objects can ever have the same ID.
>>> 

___
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: UNIQUE CARD IDs

2011-08-04 Thread Shao Sean

You can always use the cantDelete property for the master form cards..

http://docs.runrev.com/Property/cantDelete


# only run this after setting the cantDelete property to TRUE on the  
cards you want to keep

# every other card will be deleted, so exercise caution..

lock messages  -- suppresses the deleteCard message
repeat for each line tCardID in the cardIDs of stack "yourStackNameHere"
  try
delete card id tCardID of stack "yourStackNameHere"
  catch tErr
  end try
end repeat
unlock messages


The try statement allows you to run the delete command on the cards  
that have the property set to true and not have the script stop to  
post an error saying that the card cannot be deleted..


___
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: UNIQUE CARD IDs

2011-08-04 Thread Bill Vlahos
Joe,

Could you change the name of the new duplicated card and then delete all the 
cards with the duplicate name?

For example the original cards are names Form1, Form2, etc.

When you duplicate the Form1 card call the duplicate DupForm1, etc.

When you are all done simply loop through the cards and delete any that contain 
"Dup".

Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On Aug 4, 2011, at 1:34 PM, Joe Lewis Wilkins wrote:

> Bob, Jacque,
> 
> Thanks. Perhaps you might like to know how I plan to use IDs in my 
> application.
> 
> One of the Modules (stacks) has 56 basic forms. I record the ID of those 
> forms in a field on the first card of that Module.
> 
> Subsequently, circumstances on one or more of the other Modules requires that 
> one or more of these "basic" forms be duplicated, sometimes a number of 
> times; particularly while I'm testing things, I need to revert back to the 
> original stack with its 56 basic forms. Substituting a copy of that Module 
> for the one that has been modified doesn't work. LC always brings up the 
> modified stack - regardless of what I may do; I can tediously go through and 
> delete the newly created cards, but that soon gets too much for even my 
> patience level. 
> 
> Now I will just cycle through the cards and delete those whose ID differs 
> from the ones whose IDs I've stored in the field. I'm sure I'll find other 
> uses for this technique at some other point. I just wanted to be 100% sure 
> that I wasn't creating a FrankenCode monster. (smile) I had considered using 
> a system of marked cards to achieve the same result, but I'm already using 
> that to track the Forms that I'll want to print in the final reports and I 
> confuse easily. (smile)
> 
> Thanks again,
> 
> Joe Wilkins
> 
> On Aug 4, 2011, at 12:52 PM, J. Landman Gay wrote:
> 
>> On 8/4/11 1:51 PM, Joe Lewis Wilkins wrote:
>>> Hi Jaqui,
>>> 
>>> When new cards are created with the clone command, how sure can we be
>>> that the new card will be given a unique ID for the current stack?
>> 
>> 100% sure. As Bob said, no two objects can ever have the same ID.
>> 
>> -- 
>> 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


___
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 check for duplicate usernames?

2011-08-04 Thread Admin
  

Since I bought the special that was going on, it came with sqlYoga,
but I have had zero time to look at it. I will now. 

Mike 

On Thu, 4
Aug 2011 11:34:47 -0700, Bob Sneidar wrote: 

> Sorry didn't read the
whole post. revDataFromQuery will return empty if there were no records
matching your select statement. Check to see if it is empty. Obviously,
if you need it to be unique, and nothing has gone wrong in the past,
there will only be one matching record if one already exists and then
revDataFromQuery will not return an empty value. 
> 
> Again, I like the
fact that sqlYoga can return the data as an array instead of a text
blob. 
> 
> Bob
> 
> On Aug 4, 2011, at 10:51 AM, Admin wrote:
> 
>>
Sorry to sound stupid, but after the select statement, how do I then
count for how many records got returned? Here's the select statement you
wrote with my variable: put "select username from uservalidation where
username = " &SQ &UN &SQ into CountUN --count how many records got
returned. If greater than 0 you have a duplicate. SQ's are single quotes
and CountUN is the new variable
> 
>
___
> use-livecode mailing
list
> use-livecode@lists.runrev.com [1]
> Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
>
http://lists.runrev.com/mailman/listinfo/use-livecode [2]

 


Links:
--
[1] mailto:use-livecode@lists.runrev.com
[2]
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: Airlaunch 1.0b2

2011-08-04 Thread J. Landman Gay

On 8/4/11 7:32 PM, Mark Wieder wrote:

Jacque-

Thursday, August 4, 2011, 3:03:23 PM, you wrote:


Jacque's Time Warp stack gives you access to all infinite alternate timelines



Except those with spaces in their dimensions. I'll fix that when I can
figure out how to get space out of time.


replace space with empty in time



I...can't think of a one-upper.

--
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


Distributing iOS externals

2011-08-04 Thread Mark Schonewille
Hi,

I just made two externals, one that reads the battery level (following the 
RunRev tutorial) and another one that returns the localized device model. Now I 
need to distribute these externals.

It isn't clear to me whether I can just sign an external with my own provision 
profile for distribution and send it to someone who includes it in his LiveCode 
project and creates a standalone with his own provision profile. Can I 
distribute the signed external or do I have to send the source code to the 
client? (The client would rather not compile the external).

Is there any info available about this?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

What does that error mean? Buy LiveCodeErrors for iPhone now http://qery.us/v4 
A must-have for LiveCode programmers.


___
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: Airlaunch 1.0b2

2011-08-04 Thread Mark Wieder
Jacque-

Thursday, August 4, 2011, 3:03:23 PM, you wrote:

>> Jacque's Time Warp stack gives you access to all infinite alternate timelines

> Except those with spaces in their dimensions. I'll fix that when I can
> figure out how to get space out of time.

replace space with empty in time

-- 
-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: Airlaunch 1.0b2

2011-08-04 Thread Bob Sneidar
Oh that's easy! Since the alternate timelines are infinite, just call your 
stack recursively until you find yourself solving the problem. Then ask 
yourself how you did it. Then go buy some new socks because you will be out. In 
fact all of the states of Texas, Oklahoma, New York and California will 
probably be out of socks. 

... scuse me while I go buy some stock ...

Bob


On Aug 4, 2011, at 3:03 PM, J. Landman Gay wrote:

>> Jacque's Time Warp stack gives you access to all infinite alternate timelines
> 
> Except those with spaces in their dimensions. I'll fix that when I can figure 
> out how to get space out of time.
> 
> -- 
> 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


___
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


[ANN] stsColorPicker DropTool

2011-08-04 Thread Ken Ray
Hey all - just a quick note to let you know that I've posted a new addition to 
the DropTools site - this free DropTool is a simple color picker with a color 
swatch and drop shadow that depresses when you click it.

   http://droptools.sonsothunder.com/products/sts/sts-cp.irev

Enjoy!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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: Where does survive the inventive user ?

2011-08-04 Thread Lynn Fredricks
> But clearly, having NONE is not the answer.

Well, but it is an answer, until you find the right business case to "ask
the question". I don't think it's a question of if LiveCode could fit the
role or not that HC did. We've been talking about all these great free
stacks HC had (or caused to make), and how that was attractive to something
we now know used to exist. If there was suddenly a free LC with the same
stacks that HC had (modestly updated), that's not to say the market response
would be the same as before.

Given the market now - is there an heir to the inventive user of significant
potential size, and what other qualities/industries define them so LC can be
marketed to them? Figuring out who they are would also necessarily drive
what sort of free project stacks ago should be built.

LC's sitting pretty well as a deployment based, cross platform solution with
mobile, server and desktop - so pursuing the inventive user? Needs a lot
more definition to help drive product development and not be contrary to
where LC's been successful.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 



> Judy
> http://bingo.economy-x-talk.com/
> 
> On Thu, 4 Aug 2011, Lynn Fredricks wrote:
> 
> 
> 
> > But I think the question is, if all the programmatic elements that 
> > created the HC phenonemon then were implemented in LC 
> today, would the 
> > end result be similar to what it was in the HC days? I think there 
> > have been some pretty significant market based changes 
> since then, and 
> > you can't have one without the other.
> 
> ___
> 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: Airlaunch 1.0b2

2011-08-04 Thread J. Landman Gay

Jacque's Time Warp stack gives you access to all infinite alternate timelines


Except those with spaces in their dimensions. I'll fix that when I can 
figure out how to get space out of time.


--
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: Airlaunch 1.0b2

2011-08-04 Thread Bob Sneidar
You do not have to imagine. Jacque's Time Warp stack gives you access to all 
infinite alternate timelines. Trouble is, you have to go there before you can 
tell if it's the one you want. It may take some time. Bring extra socks...

Bob


On Aug 4, 2011, at 1:30 PM, Roger Eller wrote:

> On Thu, Aug 4, 2011 at 3:53 PM, J. Landman Gay wrote:
> 
>> On 8/4/11 2:40 PM, Scott Rossi wrote:
>> 
>>> Recently, Jacque Landman Gay wrote:
>>> 
>>> I hope these announcements don't annoy anyone, it's the only way I can
 let people know.
 
>>> 
>>> How can anything that enhances our LiveCode development be considered
>>> annoying?  It's not like you're announcing CheeseLaunch or something...
>>> 
>> 
>> I so wish I'd thought to call it that. :) But next time I think I'd better
>> put "[ANN]" in the subject.
>> 
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> 
> Imagine an alternate timeline where the world was without LiveCode; a world
> where the successor to HyperCard was CheesyCard.  Instead of the
> English-like syntax, commands are based on bad jokes and puns.  Just
> imagine...
> 
> ~Roger
> ___
> 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: Airlaunch 1.0b2

2011-08-04 Thread Bob Sneidar
Or pre-alpha bug-ridden IDE crasher launch. Scott had beaten me to the punch!

Bob


On Aug 4, 2011, at 12:40 PM, Scott Rossi wrote:

> Recently, Jacque Landman Gay wrote:
> 
>> I hope these announcements don't annoy anyone, it's the only way I can
>> let people know.
> 
> How can anything that enhances our LiveCode development be considered
> annoying?  It's not like you're announcing CheeseLaunch or something...
> 
> Thanks for the update Jacque.
> 
> 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


RE: Where does survive the inventive user ?

2011-08-04 Thread Judy Perry

But clearly, having NONE is not the answer.

Judy
http://bingo.economy-x-talk.com/

On Thu, 4 Aug 2011, Lynn Fredricks wrote:




But I think the question is, if all the programmatic elements that created
the HC phenonemon then were implemented in LC today, would the end result be
similar to what it was in the HC days? I think there have been some pretty
significant market based changes since then, and you can't have one without
the other.


___
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: Where does survive the inventive user ?

2011-08-04 Thread Judy Perry

Indeed.

On Thu, 4 Aug 2011, Pierre Sahores wrote:


The great strength of HyperCard was to offer us hundreds of preprogrammed 
stacks that we could arrange as a lego to build our first applications before 
we had to put our fingers in the dust to understand how these stacks were coded.


___
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: UNIQUE CARD IDs

2011-08-04 Thread Joe Lewis Wilkins
Bob, Jacque,

Thanks. Perhaps you might like to know how I plan to use IDs in my application.

One of the Modules (stacks) has 56 basic forms. I record the ID of those forms 
in a field on the first card of that Module.

Subsequently, circumstances on one or more of the other Modules requires that 
one or more of these "basic" forms be duplicated, sometimes a number of times; 
particularly while I'm testing things, I need to revert back to the original 
stack with its 56 basic forms. Substituting a copy of that Module for the one 
that has been modified doesn't work. LC always brings up the modified stack - 
regardless of what I may do; I can tediously go through and delete the newly 
created cards, but that soon gets too much for even my patience level. 

Now I will just cycle through the cards and delete those whose ID differs from 
the ones whose IDs I've stored in the field. I'm sure I'll find other uses for 
this technique at some other point. I just wanted to be 100% sure that I wasn't 
creating a FrankenCode monster. (smile) I had considered using a system of 
marked cards to achieve the same result, but I'm already using that to track 
the Forms that I'll want to print in the final reports and I confuse easily. 
(smile)

Thanks again,

Joe Wilkins

On Aug 4, 2011, at 12:52 PM, J. Landman Gay wrote:

> On 8/4/11 1:51 PM, Joe Lewis Wilkins wrote:
>> Hi Jaqui,
>> 
>> When new cards are created with the clone command, how sure can we be
>> that the new card will be given a unique ID for the current stack?
> 
> 100% sure. As Bob said, no two objects can ever have the same ID.
> 
> -- 
> 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: Airlaunch 1.0b2

2011-08-04 Thread Roger Eller
On Thu, Aug 4, 2011 at 3:53 PM, J. Landman Gay wrote:

> On 8/4/11 2:40 PM, Scott Rossi wrote:
>
>> Recently, Jacque Landman Gay wrote:
>>
>>  I hope these announcements don't annoy anyone, it's the only way I can
>>> let people know.
>>>
>>
>> How can anything that enhances our LiveCode development be considered
>> annoying?  It's not like you're announcing CheeseLaunch or something...
>>
>
> I so wish I'd thought to call it that. :) But next time I think I'd better
> put "[ANN]" in the subject.
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
Imagine an alternate timeline where the world was without LiveCode; a world
where the successor to HyperCard was CheesyCard.  Instead of the
English-like syntax, commands are based on bad jokes and puns.  Just
imagine...

~Roger
___
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: Airlaunch 1.0b2

2011-08-04 Thread J. Landman Gay

On 8/4/11 2:40 PM, Scott Rossi wrote:

Recently, Jacque Landman Gay wrote:


I hope these announcements don't annoy anyone, it's the only way I can
let people know.


How can anything that enhances our LiveCode development be considered
annoying?  It's not like you're announcing CheeseLaunch or something...


I so wish I'd thought to call it that. :) But next time I think I'd 
better put "[ANN]" in the subject.


--
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: UNIQUE CARD IDs

2011-08-04 Thread J. Landman Gay

On 8/4/11 1:51 PM, Joe Lewis Wilkins wrote:

Hi Jaqui,

When new cards are created with the clone command, how sure can we be
that the new card will be given a unique ID for the current stack?


100% sure. As Bob said, no two objects can ever have the same ID.

--
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: Airlaunch 1.0b2

2011-08-04 Thread Scott Rossi
Recently, Jacque Landman Gay wrote:

> I hope these announcements don't annoy anyone, it's the only way I can
> let people know.

How can anything that enhances our LiveCode development be considered
annoying?  It's not like you're announcing CheeseLaunch or something...

Thanks for the update Jacque.

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: UNIQUE CARD IDs

2011-08-04 Thread Bob Sneidar
Because if the engine did not make sure of it, things would get really, really 
hosed in your stack in a hurry. The engine relies on the fact that every object 
has it's own unique id, and so does not leave it up to us. Someone in a past 
thread was trying to set the id of the stack so that he could control what the 
next id of an object was. This turned out to be sketchy, one of the reasons 
being, the IDE would not allow him to set the ID to something lower than it 
already was. 

The engine is designed to prevent ID conflicts from happening, otherwise we 
would all be in a funny farm right now. You could just as easily ask, "How can 
I be sure that when I create a new button it will actually be created?" At some 
point you just have to trust that it is so. Clone Card and New Card increment 
the ID of the stack, look at the ID of the stack, then set the new object to 
that. In fact, any time you create ANYTHING it works like this. The stack ID is 
the next object counter and so should never be used as a reference or 
manipulated in any way, and though you can increment it yourself, I would 
discourage it. 

Bob


On Aug 4, 2011, at 11:51 AM, Joe Lewis Wilkins wrote:

> Hi Jaqui,
> 
> When new cards are created with the clone command, how sure can we be that 
> the new card will be given a unique ID for the current stack?
> 
> TIA,
> 
> Joe Lewis Wilkins
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> 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


UNIQUE CARD IDs

2011-08-04 Thread Joe Lewis Wilkins
Hi Jaqui,

When new cards are created with the clone command, how sure can we be that the 
new card will be given a unique ID for the current stack?

TIA,

Joe Lewis Wilkins










___
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 check for duplicate usernames?

2011-08-04 Thread Bob Sneidar
Sorry didn't read the whole post. revDataFromQuery will return empty if there 
were no records matching your select statement. Check to see if it is empty. 
Obviously, if you need it to be unique, and nothing has gone wrong in the past, 
there will only be one matching record if one already exists and then 
revDataFromQuery will not return an empty value. 

Again, I like the fact that sqlYoga can return the data as an array instead of 
a text blob. 

Bob


On Aug 4, 2011, at 10:51 AM, Admin wrote:

> Sorry to sound stupid, but after the select statement, how do I
> then count for how many records got returned? 
> 
> Here's the select
> statement you wrote with my variable: 
> 
> put "select username from
> uservalidation where username = " &SQ &UN &SQ into CountUN
> --count how
> many records got returned. If greater than 0 you have a duplicate.
> 
> 
> SQ's are single quotes and CountUN is the new variable


___
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 check for duplicate usernames?

2011-08-04 Thread Bob Sneidar
Have you dug into the RevDB commands? Typically the commands will return the 
number of affected rows in it or return (I cannot remember which). All your 
statement below does is create a new variable called CoundUN containing your 
sequel statement. It doesn't execute anything. 

You would first have to connect to a database using revdb_connect, then using 
the database connection ID that returns, query the database using 
revDataFromQuery() if you just want the raw data and don't want to work with 
the records, or revdb_execute() which will return the number of rows operated 
on, which I believe in a select statement would return the number of found 
records. RevDataFromQuery() will return text of the records in tab or comma 
delimited format, so you can check to see if it's empty. 

The database library takes some getting used to. I was put off by it at first, 
but was kind of getting the hang of it after MUCH trial and error. Then Trevor 
Devore produced sqlYoga, which VASTLY simplifies working with SQL databases. 
Even that has a bit of a learning curve, as it is a unique API, but it has some 
tremendous advantages. 

The way it works is, you first create a database object, which is an array in 
memory to hold the information you need to connect. Next you use dbconn_set to 
set things like the name of the database, the type, the port, the password etc. 
Then you use dbconn_connect to connect to the database. This will set the 
connection object up with all kinds of things, like the schema of the database 
and tables, the connection ID, and other things. It keeps track of all that for 
you so you don't have to yourself. 

Now to query the database, you use sqlquery_createObject() to create a query 
object that acts much the same as your connection object, only it keeps track 
of things like columns to retrieve, groupings, offset, sort order, etc. Setting 
these properties in the query object is a simple matter of calling sqlquery_set 
with the property name and what you want to store in the property. 

Finally to get information back, you use sqlquery_retrieve, 
sqlquery_retrieveAsArray, sqlquery_retrieveAsData, or 
sqlquery_retrieveAsRecords. All you have to do in these commands it give it you 
query object and the variable you want the results to be stored in, and voila! 
You have your data, without having to know a thing about SQL. 

I find it well worth the price. I could code all this myself using the built in 
revDB library, but frankly I find this counterproductive, simply because I am 
not that good at SQL, and the frustration of continually debugging my Sequel 
tend to make me walk away from projects. 

Sorry for the long post. 

Bob


On Aug 4, 2011, at 10:51 AM, Admin wrote:

> Sorry to sound stupid, but after the select statement, how do I
> then count for how many records got returned? 
> 
> Here's the select
> statement you wrote with my variable: 
> 
> put "select username from
> uservalidation where username = " &SQ &UN &SQ into CountUN
> --count how
> many records got returned. If greater than 0 you have a duplicate.
> 
> 
> SQ's are single quotes and CountUN is the new variable


___
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: Delete a card?

2011-08-04 Thread J. Landman Gay

On 8/3/11 10:10 PM, Pete wrote:

Pretty sure none of those things were true, but wouldn't I get some sort of
error message if any of them were true?


I didn't get one when I just tested on a card with cantdelete set to 
true. Also, I've never noticed before, but I don't see a Delete option 
in the contextual menu for the card. I had to choose Delete from the IDE 
menu.


--
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: How to check for duplicate usernames?

2011-08-04 Thread Admin
  

Sorry to sound stupid, but after the select statement, how do I
then count for how many records got returned? 

Here's the select
statement you wrote with my variable: 

put "select username from
uservalidation where username = " &SQ &UN &SQ into CountUN
--count how
many records got returned. If greater than 0 you have a duplicate.


SQ's are single quotes and CountUN is the new variable

Do I put:

If
CountUN0 then

answer "Duplicate Username, please choose another
one"

exit to top

else

end if

Does that sound about right?

Mike

On
Thu, 4 Aug 2011 09:13:51 -0700, Bob Sneidar wrote: 

> On save, 
>
select username from uservalidation where username =count how many
records got returned. If greater than 0 you have a duplicate. 
> 
>
Bob
> 
> On Aug 4, 2011, at 8:42 AM, Admin wrote:
> 
>> I have a
reasonably well working database now, however, you can still duplicate
usernames - my code is not working. I can gain access to he database, no
problem. I can write to and read from with no problem Here, I just want
to access the UserValidation table, grab all the usernames and compare
the current one in the password field to all the ones in the database.
If there's a match, then I want to tell them to choose another username
since it is taken. Pretty straight forward, right? Here is my code:
--find out if username already exists put "SELECT UserName FROM
UserValidation" into theUN put revDataFromQuery(,,dbID,theUN) into
theUNData if theUNData = the text of field "fldUserName" then answer
"Username already exists, please pick another" exit to top end if if
theUNData contains "revdberr" then answer warning "There is an error
"&theUNData exit to top end if Why is it not working? Could anyone with
mysql knowledge take a shot? Mike
___ use-livecode mailing
list use-livecode@lists.runrev.com [1] Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode [2]
> 
>
___
> use-livecode mailing
list
> use-livecode@lists.runrev.com [3]
> Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
>
http://lists.runrev.com/mailman/listinfo/use-livecode [4]

 


Links:
--
[1] mailto:use-livecode@lists.runrev.com
[2]
http://lists.runrev.com/mailman/listinfo/use-livecode
[3]
mailto:use-livecode@lists.runrev.com
[4]
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: Building external for iOS: No such file or directory

2011-08-04 Thread Mark Schonewille
Hi again,

After restarting XCode, I could get it to work. AFAIK I didn't change anything 
else. The external now works perfectly in the simulator.

The next problem is that I can't launch test.app on my iPhone. The console says 
it can't load the external. When I start the app from within XCode, I get the 
completely black "splash screen" for 5 minutes or so and eventually the app 
crashes. If I start it manually, it crashes immediately. Any idea why?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

What does that error mean? Buy LiveCodeErrors for iPhone now http://qery.us/v4 
A must-have for LiveCode programmers.

On 4 aug 2011, at 18:31, Mark Schonewille wrote:

> Hi,
> 
> I followed this video tutorial http://qery.us/wa step by step but get two 
> errors when I try to run the external in the iOS simulator:
> 
> Error 1: linking step of external dylib build failed, probably due to missing 
> framework or library references - check the contents of the rredevice.ios file
> 
> Error 2: cp: 
> /Users/Mark/Desktop/rredevice/build/Debug-iphonesimulator/rredevice.dylib: No 
> such file or directory
> 
> I assume that solving error 1 would also solve error 2. How would I solve 
> error 1?
> 
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> What does that error mean? Buy LiveCodeErrors for iPhone now 
> http://qery.us/v4 A must-have for LiveCode programmers.


___
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 check for duplicate usernames?

2011-08-04 Thread Admin
  

And how do I do that? 

Mike 

On Thu, 4 Aug 2011 09:53:44 -0600,
Jeff Massung wrote: 

> Instead of checking for a username, mark the
UserName field in the table as
> being UNIQUE. This will cause the DB to
error out of a transaction that
> attempts to insert the same UserName
into the table multiple times. Then
> catch that.
> 
> Jeff M.
>
___
> use-livecode mailing
list
> use-livecode@lists.runrev.com [1]
> Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
>
http://lists.runrev.com/mailman/listinfo/use-livecode [2]

 


Links:
--
[1] mailto:use-livecode@lists.runrev.com
[2]
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: [OT] Flash is NOT Dead

2011-08-04 Thread Bob Sneidar
I guess the Russians are right! There IS no such thing as a free lunch! :-)

Bob


On Aug 4, 2011, at 10:07 AM, Martin Baxter wrote:

> On 03/08/2011 16:52, J. Landman Gay wrote:
>> On 8/3/11 8:17 AM, Richard Gaskin wrote:
>>> Kay C Lan wrote:
 On Wed, Aug 3, 2011 at 12:12 AM, Lynn Fredricks <
>> 
 I recommend NoScripts
>>> 
>>> +1 on NoScript: makes browsing faster and safer.
>> 
>> I've been using NoScript for years. Last week I discovered Ghostery.
>> It lets you know what sites are tracking you and allows you to block
>> the trackers. I have been appalled by what's been going on without
>> my knowledge. Some sites have a dozen or more trackers and web bugs
>> installed.
>> 
> 
> Me too on NoScript. It has saved my skin several times to my knowledge,
> and probably more times than I know about.
> 
> I use Firefox mostly for general browsing, and keep it hardened. Some
> sites I don't even want to leave my IP address behind and then I use
> TOR. For sites I trust, where javascript and cookies are mandated, I use
> SeaMonkey exclusively. Using an entirely separate browser for trusted
> sites adds a little more separation between the heterogeneous security
> realms I think and means you don't have to fiddle about so much managing
> settings for individual cases.
> 
> Firefox users concerned about privacy might also be interested in the
> RequestPolicy Addon. It allows a good degree of control over those
> sneaky cross-site-requests that are embedded in so many pages.
> 
> I also use my hosts file to block the standard perps.
> 
> Martin Baxter
> 
> 
> ___
> 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: [OT] Flash is NOT Dead

2011-08-04 Thread Martin Baxter
On 03/08/2011 16:52, J. Landman Gay wrote:
> On 8/3/11 8:17 AM, Richard Gaskin wrote:
>> Kay C Lan wrote:
>>> On Wed, Aug 3, 2011 at 12:12 AM, Lynn Fredricks <
> 
>>> I recommend NoScripts
>> 
>> +1 on NoScript: makes browsing faster and safer.
> 
> I've been using NoScript for years. Last week I discovered Ghostery.
> It lets you know what sites are tracking you and allows you to block
> the trackers. I have been appalled by what's been going on without
> my knowledge. Some sites have a dozen or more trackers and web bugs
> installed.
> 

Me too on NoScript. It has saved my skin several times to my knowledge,
and probably more times than I know about.

I use Firefox mostly for general browsing, and keep it hardened. Some
sites I don't even want to leave my IP address behind and then I use
TOR. For sites I trust, where javascript and cookies are mandated, I use
SeaMonkey exclusively. Using an entirely separate browser for trusted
sites adds a little more separation between the heterogeneous security
realms I think and means you don't have to fiddle about so much managing
settings for individual cases.

Firefox users concerned about privacy might also be interested in the
RequestPolicy Addon. It allows a good degree of control over those
sneaky cross-site-requests that are embedded in so many pages.

I also use my hosts file to block the standard perps.

Martin Baxter


___
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


Airlaunch 1.0b2

2011-08-04 Thread J. Landman Gay

Update available: 

This fixes an error with paths that contain spaces. Many thanks to 
Matthias for building a test standalone named "Untitled 1" and staying 
up till 2:30 AM to report it. :)


I hope these announcements don't annoy anyone, it's the only way I can 
let people know.


--
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: How to check for duplicate usernames?

2011-08-04 Thread Jeff Massung
On Thu, Aug 4, 2011 at 10:32 AM, Bob Sneidar  wrote:

> Ick! Do stuff that causes SQL to throw errors. I suppose that is a way to
> do it, but a simple select will do it cleanly. Keeps the SQL error logs
> clean too. If multiuser, lock the SQL database first, then check, insert if
> query returns 0 records, unlock the SQL database.
>
>
All are perfectly valid solutions. Preference for one method over another
should be based on reasons (if present) and personal preference otherwise.

Using a UNIQUE field can slow down INSERT operations are very large tables
if you are performing mass inserts. A user table typically doesn't have this
problem. Marking a field as UNIQUE prevents errors when working with the
database in an interactive mode. Perhaps the OP does this (probably not,
though, given the nature of the question). Doing a SELECT to lookup and then
a follow-up INSERT is solving the same problem twice: search a B-tree for a
given value, and search it again when determining where to insert the new
key. Marking as UNIQUE allows you to do this work only once, which might be
a performance win; profiling is needed.

Keep in mind, it's not causing "SQL to throw errors" as in "let's create
egregious code and break things." Referential integrity, transactions,
uniqueness, foreign keys, these things all exist for a reason: to prevent
bad things from happening now or down the road when the rules you put in
place aren't quite as fresh in memory. Using those tools when appropriate is
*highly* recommended. This may be one of those instances. Perhaps not. But a
quick, knee-jerk reaction like "ick" is hardly a deliberate, thought-through
reason to go down one path over another.

I don't mean to cause a flame war, incite, or imply anything negative. I
simply want the OP to not walk away from this thread thinking that UNIQUE is
bad in some way, or that tossing actions at SQL that "throw errors" is a bad
thing either. Look at the problem, the pros/cons of various solutions, and
pick your poison wisely.

Jeff M.
___
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 check for duplicate usernames?

2011-08-04 Thread Bob Sneidar
Ick! Do stuff that causes SQL to throw errors. I suppose that is a way to do 
it, but a simple select will do it cleanly. Keeps the SQL error logs clean too. 
If multiuser, lock the SQL database first, then check, insert if query returns 
0 records, unlock the SQL database. 

A method I use that works generically for ALL my columns is when I first open a 
table for query, I use SHOW CREATE TABLE. The result can then be searched with 
lineOffset and wholeMatches to find the column I am verifying to see if it has 
the word UNIQUE in it. (You can also check for default values to pre-populate, 
etc). If lineoffset is not 0, I call a validation routine which requeries the 
table for a duplicate before inserting/updating. 

If you want to get really fancy, you can have 3 functions: preval, rtval (real 
time for validation upon closefield) and postval. Preval can be called prior to 
opening the form for creating new records, so you can populate with default 
values, rtval can be called upon closeField for things like uppercase, 
titlecase, formatPhone, etc, and postVal prior to saving the data back to the 
database for things like not empty (NOT NULL), lookups like zip validation, 
etc. 

These validations are not difficult to write, and implement, make your database 
app much more polished. I have the validations in the stack script or a library 
stack so I can call them from anywhere. I have a behavior script for all my 
form cards so I only have to edit once for all my forms. (THANK YOU LIVECODE!) 

Bob


On Aug 4, 2011, at 8:53 AM, Jeff Massung wrote:

> Instead of checking for a username, mark the UserName field in the table as
> being UNIQUE. This will cause the DB to error out of a transaction that
> attempts to insert the same UserName into the table multiple times. Then
> catch that.
> 
> Jeff M.
> ___
> 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


Building external for iOS: No such file or directory

2011-08-04 Thread Mark Schonewille
Hi,

I followed this video tutorial http://qery.us/wa step by step but get two 
errors when I try to run the external in the iOS simulator:

Error 1: linking step of external dylib build failed, probably due to missing 
framework or library references - check the contents of the rredevice.ios file

Error 2: cp: 
/Users/Mark/Desktop/rredevice/build/Debug-iphonesimulator/rredevice.dylib: No 
such file or directory

I assume that solving error 1 would also solve error 2. How would I solve error 
1?


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

What does that error mean? Buy LiveCodeErrors for iPhone now http://qery.us/v4 
A must-have for LiveCode programmers.


___
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 check for duplicate usernames?

2011-08-04 Thread Bob Sneidar
On save, 
select username from uservalidation where username = 
count how many records got returned. If greater than 0 you have a duplicate. 

Bob


On Aug 4, 2011, at 8:42 AM, Admin wrote:

> 
> 
> I have a reasonably well working database now, however, you can
> still duplicate usernames - my code is not working. I can gain access to
> he database, no problem. 
> 
> I can write to and read from with no problem
> 
> 
> Here, I just want to access the UserValidation table, grab all the
> usernames and compare the current one in the password field to all the
> ones in the database. If 
> 
> there's a match, then I want to tell them to
> choose another username since it is taken. Pretty straight forward,
> right? 
> 
> Here is my code: 
> 
> --find out if username already exists
> put
> "SELECT UserName FROM UserValidation" into theUN
> put
> revDataFromQuery(,,dbID,theUN) into theUNData
> 
> if theUNData = the text
> of field "fldUserName" then
> answer "Username already exists, please
> pick another"
> exit to top
> end if
> 
> if theUNData contains "revdberr"
> then
> answer warning "There is an error "&theUNData
> exit to top
> end
> if
> 
> Why is it not working? Could anyone with mysql knowledge take a
> shot?
> 
> Mike
> 
> 
> ___
> 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: Where does survive the inventive user ?

2011-08-04 Thread Bob Sneidar
I think we overlook the novelty aspect of Hypercard when it was first released, 
combined with the fact that it was just "there". Tell all Mac users that their 
new OS allows them to make custom apps without having to buy anything or 
install anything, and those inclined are going to give it a go. It's fuel and 
matches delivered to the front door, indeed put next to the fireplace. It only 
needs someone to place the fuel where they want it, strike the match and toss 
it in. It worked in large part and for so long because Apple, the creators of 
Hypercard didn't "need" it to work. It was a real act of benevolence IMHO that 
any Mac user could take or leave and no one was any the worse for wear. 

Livecode is not in that boat. They live or die based upon the marketability of 
their product. They have to convince us to go down to the market and buy the 
fuel and matches, and then haul them home and actually light it. And not just 
ANY fuel and matches, (their are several brands) but THEIR fuel and matches, 
based upon the promise their their fuel lights a whole lot easier and faster, 
and provides pretty close to the same amount of heat as their competitors. 

Sure a couple competitors fuel burns in different colors, and one forms little 
dancing angels in the flames, but do we really need that? We just want to get 
the fire lit and go do other things. The trick to marketing Livecode is to find 
others just like us and convince them that Runrev has what they need. 

God I love analogies! 

Bob


On Aug 4, 2011, at 7:52 AM, Lynn Fredricks wrote:

> But I think the question is, if all the programmatic elements that created
> the HC phenonemon then were implemented in LC today, would the end result be
> similar to what it was in the HC days? I think there have been some pretty
> significant market based changes since then, and you can't have one without
> the other.
> 
> Best regards,
> 
> Lynn Fredricks
> President
> Paradigma Software
> http://www.paradigmasoft.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: How to check for duplicate usernames?

2011-08-04 Thread Björnke von Gierke
On 4 Aug 2011, at 17:42, Admin wrote:

> "SELECT UserName FROM UserValidation" into theUN

This query returns all entries in the _column_ username. Later you check if 
that is _equal_ to the entered password. That makes no sense. either use a 
query that looks specifically for the entered name (watch out for sql injects), 
or use "is within", "is among", "contains", or a repeat loop (watch out for 
wholeMatches). An example query could be:

"SELECT UserName FROM UserValidation WHERE UserName is" && enteredUserName into 
theSQL


-- 
Watch live presentations every Saturday:
http://livecode.tv

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/


___
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 check for duplicate usernames?

2011-08-04 Thread Jeff Massung
Instead of checking for a username, mark the UserName field in the table as
being UNIQUE. This will cause the DB to error out of a transaction that
attempts to insert the same UserName into the table multiple times. Then
catch that.

Jeff M.
___
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 fast-track a LC/iOS app

2011-08-04 Thread Björnke von Gierke
On 4 Aug 2011, at 13:25, Richard Miller wrote:

> 1. Is there a tutorial out there that can walk me through the process of 
> creating true iOS controls, look, feel, etc., then test it on my iPhone, then 
> submit it?
> 2. Would you recommend using a tool like MobGUI, or is that overkill?

If you create a non-native look, your app is free to behave as it wants, of 
course you will need to implement a lot of behaviours from scratch in that 
case. MobGUI is currently the easiest way to create native looking applications 
for iOS, but there's also the free iPhone control kit:
http://87.106.227.245/LiveCode/iPhoneControlKit/index_en.html

> 4. What is the recommended limit, in terms of size (mb), for the embedded app?

I fo have games that are in the area of 100-200 MB. I think those are a bit 
big, and probably would expect a smaller size from a non-game app.


-- 
Watch live presentations every Saturday:
http://livecode.tv

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/


___
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


How to check for duplicate usernames?

2011-08-04 Thread Admin
  

I have a reasonably well working database now, however, you can
still duplicate usernames - my code is not working. I can gain access to
he database, no problem. 

I can write to and read from with no problem


Here, I just want to access the UserValidation table, grab all the
usernames and compare the current one in the password field to all the
ones in the database. If 

there's a match, then I want to tell them to
choose another username since it is taken. Pretty straight forward,
right? 

Here is my code: 

--find out if username already exists
 put
"SELECT UserName FROM UserValidation" into theUN
 put
revDataFromQuery(,,dbID,theUN) into theUNData

 if theUNData = the text
of field "fldUserName" then
 answer "Username already exists, please
pick another"
 exit to top
 end if

 if theUNData contains "revdberr"
then
 answer warning "There is an error "&theUNData
 exit to top
 end
if

Why is it not working? Could anyone with mysql knowledge take a
shot?

Mike

  
___
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: Where does survive the inventive user ?

2011-08-04 Thread Lynn Fredricks
> > Something better is needed... and geared towards the true 
> inventive user and less towards the newbie programmer.
> 
> The great strength of HyperCard was to offer us hundreds of 
> preprogrammed stacks that we could arrange as a lego to build 
> our first applications before we had to put our fingers in 
> the dust to understand how these stacks were coded.

Out of the box, I think it wasn't quite that many, but what was shipped
allowed many enthusiastic users to create that many, when it was still
possible to get HyperCard for free.

Some of the stacks that were included then in HyperCard were more
immediately useful then because there weren't that many alternatives to
speak of that allowed you to so easily modify them to suit whatever you
wanted. The feature options are so much huger with LiveCode now, but so are
the alternatives.

But I think the question is, if all the programmatic elements that created
the HC phenonemon then were implemented in LC today, would the end result be
similar to what it was in the HC days? I think there have been some pretty
significant market based changes since then, and you can't have one without
the other.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 


___
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: Jerry's Custom Combo Box

2011-08-04 Thread Ian McKnight
Hi Charles

Yes I have a copy. I'll send it on.

On 4 August 2011 13:39, Charles Szasz  wrote:

> I wanted to try Jerry Daniels' sample stack that has his custom combo box
> that was in revUp issue 87 but the link has expired for downloading it. I
> contacted Jerry about it but he no longer has that sample stack.  Does
> anybody have that sample stack that they could e-mail me?
>
> Sent from my iPad
>
> ___
> 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
>



-- 
Regards


Ian McKnight

iangmckni...@gmail.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


Jerry's Custom Combo Box

2011-08-04 Thread Charles Szasz
I wanted to try Jerry Daniels' sample stack that has his custom combo box that 
was in revUp issue 87 but the link has expired for downloading it. I contacted 
Jerry about it but he no longer has that sample stack.  Does anybody have that 
sample stack that they could e-mail me?

Sent from my iPad

___
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


How to fast-track a LC/iOS app

2011-08-04 Thread Richard Miller
Would really appreciate hearing comments on how to take an existing LC 
desktop app and convert it to a iOS app, to be approved by Apple for sale.


The app is a straight-forward multimedia database. Nothing unusual in it.

I have no LC iOS experience as of yet, but years of experience with Rev.

1. Is there a tutorial out there that can walk me through the process of 
creating true iOS controls, look, feel, etc., then test it on my iPhone, 
then submit it?


2. Would you recommend using a tool like MobGUI, or is that overkill?

3. What are the pitfalls to avoid?

4. What is the recommended limit, in terms of size (mb), for the 
embedded app? It contains lots of images. Wondering which parts of the 
app should be left on, and accessed from, our server vs. downloaded by 
the customer at the time of installation.


Thank you.
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: AW: Need advice with Lion permission changes

2011-08-04 Thread Jan Schenkel
You can place them there, but the user has to have the right permissions.
LiveCode 4.5 added support for 'elevated processes' - so you'd have to create a 
separate (faceless) application and use 'open elevated process ...' which will 
prompt the user for the required password, and then the separate elevated 
process can write to those places.

Note that you should only use those places for 'support' files, not database 
files or anything of the sort. Those you should proably put somewhere in 
/users/shared or something.

HTH,

Jan Schenkel. 

=
Quartam Reports & PDF Library for LiveCode
www.quartam.com


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


- Original Message -
From: Tiemo Hollmann TB 
To: 'How to use LiveCode' 
Cc: 
Sent: Thursday, August 4, 2011 12:43 PM
Subject: AW: Need advice with Lion permission changes

That is a real pain in the ass, because my app doesn't run anymore under
lion and I haven't found a solution yet.

I have read over the last days guidelines and threads, but have not found
any answer yet. Apple says about the /library/application support/ in the
Mac OS X Developer library: " For example, you might use this directory to
store application-created data files, configuration files, templates, or
other fixed or modifiable resources that are managed by the application.",
see:
http://developer.apple.com/library/mac/#documentation/FileManagement/Concept
ual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html#//
apple_ref/doc/uid/TP40010672-CH2-SW1
But I CAN'T create files anymore in this directory and I have nothing found
in the developer guidelines of apple, what has changed on lion and where to
store now common files.

The users directories are no solution for me (read my old threads)

I tried to create first a user folder in the users directory and then copy
it to the common application support folder, but the access is obviously
denied. I could do it only with sudo in the terminal. But if I try to run
sudo mv ... in the shell from livecode, I get the same error, as already
Josh: "no tty present and no askpass program specified" Can anybody shed
some light on this? (same with sudo ditto) I have no clue what it means and
how I can get it working with sudo.

I can't believe that there is no place anymore, where you can store common
app files! Am I the only one who needs common app files?
I a pretty helpless and thankfull for every hint

P.S. @Ken Ray: You said " Yes, I got burned as well, but I *still* plan on
writing "all users" support files in the /Library/Application Support
folder, even if I have to go the extra mile to make it happen." I would love
if you could share your extra mile!

Thanks
Tiemo


> -Ursprüngliche Nachricht-
> Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
> boun...@lists.runrev.com] Im Auftrag von Pete
> Gesendet: Dienstag, 2. August 2011 23:02
> An: How to use LiveCode
> Betreff: Re: Need advice with Lion permission changes
> 
> I too am interested in the answer to this.  I'm not sure it ever got
> resolved in the previous thread on the question.  Is there anywhere under
> Lion that files can be installed for use by all users without having to
> resort to chmod commands?
> Pete
> Molly's Revenge 
> 
> 
> 



___
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


AW: Need advice with Lion permission changes

2011-08-04 Thread Tiemo Hollmann TB
That is a real pain in the ass, because my app doesn't run anymore under
lion and I haven't found a solution yet.

I have read over the last days guidelines and threads, but have not found
any answer yet. Apple says about the /library/application support/ in the
Mac OS X Developer library: " For example, you might use this directory to
store application-created data files, configuration files, templates, or
other fixed or modifiable resources that are managed by the application.",
see:
http://developer.apple.com/library/mac/#documentation/FileManagement/Concept
ual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html#//
apple_ref/doc/uid/TP40010672-CH2-SW1
But I CAN'T create files anymore in this directory and I have nothing found
in the developer guidelines of apple, what has changed on lion and where to
store now common files.

The users directories are no solution for me (read my old threads)

I tried to create first a user folder in the users directory and then copy
it to the common application support folder, but the access is obviously
denied. I could do it only with sudo in the terminal. But if I try to run
sudo mv ... in the shell from livecode, I get the same error, as already
Josh: "no tty present and no askpass program specified" Can anybody shed
some light on this? (same with sudo ditto) I have no clue what it means and
how I can get it working with sudo.

I can't believe that there is no place anymore, where you can store common
app files! Am I the only one who needs common app files?
I a pretty helpless and thankfull for every hint

P.S. @Ken Ray: You said " Yes, I got burned as well, but I *still* plan on
writing "all users" support files in the /Library/Application Support
folder, even if I have to go the extra mile to make it happen." I would love
if you could share your extra mile!

Thanks
Tiemo


> -Ursprüngliche Nachricht-
> Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
> boun...@lists.runrev.com] Im Auftrag von Pete
> Gesendet: Dienstag, 2. August 2011 23:02
> An: How to use LiveCode
> Betreff: Re: Need advice with Lion permission changes
> 
> I too am interested in the answer to this.  I'm not sure it ever got
> resolved in the previous thread on the question.  Is there anywhere under
> Lion that files can be installed for use by all users without having to
> resort to chmod commands?
> Pete
> Molly's Revenge 
> 
> 
> 



___
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: Where does survive the inventive user ?

2011-08-04 Thread Pierre Sahores

Le 4 août 2011 à 06:30, Judy Perry a écrit :

> Something better is needed... and geared towards the true inventive user and 
> less towards the newbie programmer.

The great strength of HyperCard was to offer us hundreds of preprogrammed 
stacks that we could arrange as a lego to build our first applications before 
we had to put our fingers in the dust to understand how these stacks were coded.

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.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: [OT] Max-Gentleman

2011-08-04 Thread Richmond Mathewson

On 08/04/2011 03:46 AM, Mark Wieder wrote:

Tim-

I'm sure there's a use for one of those things but it... er... escapes
me right at the moment...



It can be used for flagellating people who are meant to be concentrating 
on their Livecode programming but get side-tracked . . .  :)


___
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: [OT] Max-Gentleman

2011-08-04 Thread Richmond Mathewson

On 08/03/2011 10:09 PM, stephen barncard wrote:

Reminds me of a time when my dad said there were ads for 'color tv
converters' and what you got were several plastic gels to put over your
black and white set. Color, right! Which one do you want? Red, Blue or
Green.


Funnily enough I remember that in Britain as well. My grandfather, a 
wise man,
said that the best way to get colour television was to watch a 
black-and-white set through a glass of wine!




On 3 August 2011 10:24, Timothy Millerwrote:


When I was in college, an insecure acquaintance of mine replied to an
advertisement in a gentleman's magazine: "Get a 12 inch penis in 30 days."
The price was painfully high, but he hoped for rich rewards.

About four weeks later, dizzy with curiosity and hope, he ripped open the
plain unmarked package.

He got a twelve inch rubber penis.

Cheers,


Tim


On Aug 2, 2011, at 9:27 AM, Richmond Mathewson wrote:


Does anybody know who "Max-Gentleman" is?

He keeps sending me e-mails (to all my e-mail accounts), and obviously
is a very short person (P.O.R.G. - person of restricted growth) as he

seems to be

appealing for some sort of pills to make him grow.

Should I feel sorry for this chap, considering he is vertically

challenged?

Considering his parents, considering his short stature, have given him a

sadistic moniker?

And, can anybody suggest a way to help him in such a way that he stops

filling my in-boxes and spam-boxes up with his importunings?

___
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: [OT] Max-Gentleman

2011-08-04 Thread Richmond Mathewson

On 08/03/2011 08:24 PM, Timothy Miller wrote:

When I was in college, an insecure acquaintance of mine replied to an advertisement in a 
gentleman's magazine: "Get a 12 inch penis in 30 days." The price was painfully 
high, but he hoped for rich rewards.

About four weeks later, dizzy with curiosity and hope, he ripped open the plain 
unmarked package.

He got a twelve inch rubber penis.

Cheers,


Tim



Well, when I was 15 a friend and I sent off for some "real grass", with the
inevitable result . . .  :)

___
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: [ANN] BvG Docu 2

2011-08-04 Thread Keith Clarke
...nice work, Björnke - the search capability really adds to the dictionary's 
usefulness and accessibility. 
Thanks for sharing.
Best,
Keith..

On 3 Aug 2011, at 18:18, Björnke von Gierke wrote:

> As mentioned in the last livecode.tv event, BvG Docu 2 is now available. It 
> works with Rev / LC versions 4.0 to 4.6.3, and accompanying Metacard IDE's.
> 
> Get it at my site: http://bjoernke.com/bvgdocu/
> 
> BvG Docu is an alternative way and GUI for using the dictionary entries. This 
> is the second Iteration, coded anew from ground up using SQLite. Differences 
> to the built in dictionary encompass:
> -  choose your own text style, size and layout for the entries
> -  full text search
> -  faster to use and easier to reach entries
> -  'see also' entries more prominent
> -  better usability
> -  print button
> 
> 
> Try it now, and see wether you like it more then the build in dictionary for 
> yourself:
> 
> http://bjoernke.com/bvgdocu/
> 
> Björnke
> 
> 
> -- 
> Watch live presentations every Saturday:
> http://livecode.tv
> 
> Use an alternative Dictionary viewer:
> http://bjoernke.com/bvgdocu/
> 
> Chat with other RunRev developers:
> http://bjoernke.com/chatrev/
> 
> 
> ___
> 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