Help for a non-code newbie!

Edwin Gore edgore at shinra.com
Mon Jul 21 17:17:03 EDT 2003


Welcome to the Revolution Lars!

On the first question:

I don't know of a way to do it in one line, but I can help you do it in fewer than 8!

You have two choices - either manage the numbers of the fields so that they are consecutive (which is hard, and boring) or include a number in the name. In either case you then hide and show them using a repeat loop - as in

fields and buttons are named like

fieldToHide1
fieldToHide2
etc.

buttonToHide1
buttonToHide2
etc.

Then use code like:

repeat with x = 1 to 8
hide field ("fieldToHide" & x)
hide button ("buttonToHide" & x)
end repeat

On the second question, well, it's complicated. There is probably some way that you could do it, but as copy protection it will be pretty useless. Unless the actual CD is copy protected, anybody will still be able to start your application using a copy of the original CD.

What you might find more useful (depending on how you expect the CD to be used) is to look at maybe doing some kind of an online registration check when the user tries to perform certain functions.

The application I am working on for example, won't the the user change a very important parameter without first checking against an encrypted list of registered users online.

Good luck!

Edwin Gore

>----- ------- Original Message ------- -----
>From: Lars Brehmer 
>To: use-revolution at lists.runrev.com
>Sent: Mon, 21 Jul 2003 15:29:28
>
>Hi there!
>
>I am one of those COMPLETELY non-programming people
>trying to use 
>Revolution to develop a good idea into an
>inexpensive commercial 
>product.  The manual is currently unavailable (I
>will buy a copy the 
>second it is available and am waiting to hear about
>any 3rd party books 
>on Revolution!) and I have 2 absolute beginner's
>questions:
>
>1. Is there a way to hide multiple objects without
>a line for each one 
>in the handler?  If I have to have a code line for
>each object and 
>there are 8 fields and 8 buttons on each card, the
>stack gets real big 
>real fast.  I've tried
>
>hide field 1,2,3,etc
>hide fields 1,2,3,etc
>hide field 1-8
>hide fields1-8
>
>and so far nothing works.  I obviously have no clue
>about code syntax!
>
>I also tried grouping themand hiding the group, but
>when other handlers 
>need to show individual objects, it either doesn't
>work or I need to 
>ungroup the group and am right back where I
>started!  Can anyone help 
>me?
>
>
>2. Is there a way to build a feature into a stack
>so that once the 
>stack is a standalone and installed from a disk it
>requires the disk it 
>was installed from to be present in the drive in
>order to continue?
>I don't know whether what I am saying makes sense,
>I just know that 
>lots of reference works that are installed on my
>machine require that I 
>insert the disk they came on in order to use them. 
>I would like my app 
>to do the same.  Is there a stack script that
>creates a message to the 
>user like "Please insert disk "xyz" to continue?"
>
>Revolution is terrific and I think I have some
>pretty simple yet 
>interesting ideas and am making good progress, but
>until there is a 
>comprehensive manual available, slogans like
>"software development 
>without knowlege of code writing" aren't quite
>accurate.  Some of us 
>know literally NOTHING and struggle with Revolution
>even though it is 
>well designed and made for simplicity!
>
>Thanks a million!
>
>
>Lars Brehmer
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolu
>tion



More information about the use-livecode mailing list