Re: Newbie question re fields --> javascript

2010-11-09 Thread David Bovill
Dave - as with "shell", "do" does a line - that is if you were to look at
the string you create with:

put "alert ('"  & myScore & "');"

it would span several lines. Imagine typing that into the script editor - it
would make no sense right? So you need to have the LiveCode as a single line
and not split over multiple lines like this. That is not to say the
Javascript / AppleScript etc has to be one line - so simply construct
multiline JavaScript that would work in an HTML file, get LiveCode to
produce this JavaScript and put it into a variable, then "do" the contents
of the variable in the browser.

On 8 November 2010 19:54, David Brooks  wrote:

> We are creating standalones and launching them in browsers. We have issues
> with taking in all of a field. Any help appreciated.
>
> Works:
> on mouseUp
>   put "12131232" into myScore
>   do "alert ('"  & myScore & "');" in browser
> end mouseUp
>
>
>
> Does NOT work:
> on mouseUp
>   put fld "ListOfFiles" into myScore
>   do "alert ('"  & myScore & "');" in browser
> end mouseUp
>
>
> Works:
> on mouseUp
>   put line 1 of fld "ListOfFiles" into myScore
>   do "alert ('"  & myScore & "');" in browser
> end mouseUp
>
> WE seem to be able to put in just one line.
>
> Thanks in advance for your help.
>
>
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question re fields --> javascript

2010-11-08 Thread Web Admin Himalayan Academy

 On 11/8/10 9:54 AM, David Brooks wrote:

  do "alert ('"&  myScore&  "');" in browser



Hmm.. I'm falling behind ... where is this documented?


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


Newbie question re fields --> javascript

2010-11-08 Thread David Brooks
We are creating standalones and launching them in browsers. We have issues with 
taking in all of a field. Any help appreciated.

Works:
on mouseUp
   put "12131232" into myScore
   do "alert ('"  & myScore & "');" in browser
end mouseUp
   


Does NOT work:
on mouseUp
   put fld "ListOfFiles" into myScore
   do "alert ('"  & myScore & "');" in browser
end mouseUp


Works:
on mouseUp
   put line 1 of fld "ListOfFiles" into myScore
   do "alert ('"  & myScore & "');" in browser
end mouseUp

WE seem to be able to put in just one line. 

Thanks in advance for your help. 





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


Re: External newbie question

2010-10-21 Thread François Chaplais

Le 22 oct. 2010 à 00:09, Andre Garzia a écrit :

> Bonjour François,
> 
> Je ne parle pas français so I will answer in english :-)
> 
> You can't use Externals with LiveCode for iOS (AKA RevMobile). If you're not
> trying to do stuff with iPhone but are actually just trying to use the XCode
> that was bundled, then make sure you have the SDKs for Mac OS X installed
> because I don't think they come bundled with the iOS SDK.
> 
> You can fetch ExternalEnvironmentV3 from:
> http://developer.runrev.com/externals/ExternalsEnvironmentV3.zip
> 
> :-D
> 
> 
> 
Thanks, Andre, I think I am due for a long download



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


Re: External newbie question

2010-10-21 Thread Andre Garzia
Bonjour François,

Je ne parle pas français so I will answer in english :-)

You can't use Externals with LiveCode for iOS (AKA RevMobile). If you're not
trying to do stuff with iPhone but are actually just trying to use the XCode
that was bundled, then make sure you have the SDKs for Mac OS X installed
because I don't think they come bundled with the iOS SDK.

You can fetch ExternalEnvironmentV3 from:
http://developer.runrev.com/externals/ExternalsEnvironmentV3.zip

:-D



2010/10/21 François Chaplais 

> I have download the latest (v3?) externals lesson from runrev, and after
> having installed the iPhone dev toolkit (which included XCode), I have
> compiled the *solution* provided by runrev (op. sys. was Leopard).
> Everything worked fine, the stack was launched, but the external could not
> be called from script. This was with revStudio v. 4.0. There has been a
> thread on the list about plugins location. Could this be related? Do I have
> to put the external's stack in a special place?
>
> I have another question (which is unrelated but also concerns externals).
> There is a huge library of fortran sources at netlib
> http://www.netlib.org/ that is devoted to scientific computation. In
> theory, it is possible to put a fortran compiler into XCode, but as far I
> know, the parameters are not handled the same way in C and in Fortran
> (refetrence v.s. value). Can we get around this by using the @ keyword in
> the transcript calling code?
>
> Thanks in advance for your kind answers.
>
> Best,
>François
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



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


External newbie question

2010-10-21 Thread François Chaplais
I have download the latest (v3?) externals lesson from runrev, and after having 
installed the iPhone dev toolkit (which included XCode), I have compiled the 
*solution* provided by runrev (op. sys. was Leopard). Everything worked fine, 
the stack was launched, but the external could not be called from script. This 
was with revStudio v. 4.0. There has been a thread on the list about plugins 
location. Could this be related? Do I have to put the external's stack in a 
special place?

I have another question (which is unrelated but also concerns externals). There 
is a huge library of fortran sources at netlib http://www.netlib.org/ that is 
devoted to scientific computation. In theory, it is possible to put a fortran 
compiler into XCode, but as far I know, the parameters are not handled the same 
way in C and in Fortran (refetrence v.s. value). Can we get around this by 
using the @ keyword in the transcript calling code?

Thanks in advance for your kind answers.

Best,
François



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


Re: Newbie question

2010-05-04 Thread J. Landman Gay

Bob Sneidar wrote:

Yes, the primary difference between Hypercard and Revolution is that
in HC cards WERE your records.


And they can be in Rev too.


Similar data got added in fields on
many cards with the same "background". With Revolution, you have
access to use SQL databases, so cards become more like forms that
temporarily hold data for the user to work with. You script reading
from and writing to the SQL tables. Using that method, you can see
that there is not much use for backgrounds as such, except to repeat
elements in order to maintain some kind of consistent "look and
feel".


Right, that's the preferred approach for large data sets. On the other 
hand, HC-style card records work just fine in Rev. For someone coming in 
from HC, I often recommend doing it the comfortable way first. It's easy 
to change over to a database approach later, and the learning curve is 
much easier for HC refugees that way.


I have had several clients who just want their old HC stacks ported so 
they will run on modern computers. Most of them are desperate and don't 
want to spend a lot, and they don't want to learn a new layout. They've 
been using their stacks for 15 years or more and they like them. For 
those people I just fix the stacks to make them Rev-compatible -- 
sometimes even leaving in the old bitmap graphics if I have to. (I fight 
that. But one client had drawn them himself and didn't want them 
removed. The customer is the boss.)


The HC way isn't the most optimal approach for large data sets, but for 
anything under about 5,000 records it works. And the HC folks are 
usually happy with it, at least at first, until they learn the greater 
potential Rev has.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question

2010-05-04 Thread Terry Judd
On 5/05/10 10:46 AM, "Andre Garzia"  wrote:

> I haven't used SC/HC but I do use background groups a lot. I tend to always
> have a bg group named "interface" on my projects that holds the common user
> interface for the app, then using different cards, I just create the
> modified parts, this way, instead of showing/hiding controls as the
> interface changes reacting to the user input, I navigate to different cards.
> 
> 
> Typically my interface group consists of navigation stuff so that the user
> can access the other cards and status displays so that I have a uniform way
> of presenting stuff.
> 
> I like working that way but I don't know how people here work. So this is
> feedback from someone that never knew HC or SC prior to using RR.

I used both HC and SC before Rev and usually work in much the same was as
Andre describes. I occasionally do quite complex interfaces with multiples
views on a single card (hiding and showing interface groups) but when you're
dealing with a large number of controls that can be a pain to edit and
debug.

Terry...

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


Re: Newbie question

2010-05-04 Thread Andre Garzia
I haven't used SC/HC but I do use background groups a lot. I tend to always
have a bg group named "interface" on my projects that holds the common user
interface for the app, then using different cards, I just create the
modified parts, this way, instead of showing/hiding controls as the
interface changes reacting to the user input, I navigate to different cards.


Typically my interface group consists of navigation stuff so that the user
can access the other cards and status displays so that I have a uniform way
of presenting stuff.

I like working that way but I don't know how people here work. So this is
feedback from someone that never knew HC or SC prior to using RR.

Cheers
andre

On Tue, May 4, 2010 at 9:36 PM, Bob Sneidar  wrote:

> Yes, the primary difference between Hypercard and Revolution is that in HC
> cards WERE your records. Similar data got added in fields on many cards with
> the same "background". With Revolution, you have access to use SQL
> databases, so cards become more like forms that temporarily hold data for
> the user to work with. You script reading from and writing to the SQL
> tables. Using that method, you can see that there is not much use for
> backgrounds as such, except to repeat elements in order to maintain some
> kind of consistent "look and feel".
>
> For example, a logo could be set as a background so it only needs to be
> added once, and it shows up on every card looking and acting the same. I
> have an app I am working on that connects to an SQL database, and each card
> is a form to a particular table. But the navigation buttons and menus and
> such all work the same way on each card. So I make the navigation button
> group a background, and program the buttons in a generic way so that the
> code works no matter which card I am working with.
>
> Cards are so yesterday. :-)
>
> Bob
>
>
> On May 4, 2010, at 2:26 PM, Thomas McGrath III wrote:
>
> > Steve, Welcome to RR.
> >
> > I also came from the HC/SC background and was taken by the group "behave"
> issue, at first it seemed an oversight to a much used convention. But since
> I've been using RR I have found that I use backgrounds less and less. I
> think this is one thing that truly differentiates RR from HC and SC. In HC I
> used Cards with backgrounds in every project, then in SC I made the jump to
> windows with many cards and some backgrounds and now I use many stacks with
> windows with some cards and very few backgrounds. It is a change in the way
> I have come to think about our style of programming. The message path and
> properties etc. take on a much more important roll nowadays and some things
> like background behaviors taken on a much smaller role.
> >
> > Anyway, you seem to have found what you need so Welcome and hope to see
> you more on the list.
> >
> >
> > Tom McGrath
> >
> >
> > On May 4, 2010, at 10:39 AM, Steve Jones wrote:
> >
> >> Aha - that was it.  Didn't even see that option.  No very intuitive.
>  You have to create a GROUP and then assign it to be a BACKGROUND rather
> than just going straight to a background to begin with.  I guess there's
> more flexibility that way.
> >>
> >> Thanks!
> >>
> >> Steve
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



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


Re: Newbie question

2010-05-04 Thread Bob Sneidar
Yes, the primary difference between Hypercard and Revolution is that in HC 
cards WERE your records. Similar data got added in fields on many cards with 
the same "background". With Revolution, you have access to use SQL databases, 
so cards become more like forms that temporarily hold data for the user to work 
with. You script reading from and writing to the SQL tables. Using that method, 
you can see that there is not much use for backgrounds as such, except to 
repeat elements in order to maintain some kind of consistent "look and feel". 

For example, a logo could be set as a background so it only needs to be added 
once, and it shows up on every card looking and acting the same. I have an app 
I am working on that connects to an SQL database, and each card is a form to a 
particular table. But the navigation buttons and menus and such all work the 
same way on each card. So I make the navigation button group a background, and 
program the buttons in a generic way so that the code works no matter which 
card I am working with. 

Cards are so yesterday. :-)

Bob


On May 4, 2010, at 2:26 PM, Thomas McGrath III wrote:

> Steve, Welcome to RR.
> 
> I also came from the HC/SC background and was taken by the group "behave" 
> issue, at first it seemed an oversight to a much used convention. But since 
> I've been using RR I have found that I use backgrounds less and less. I think 
> this is one thing that truly differentiates RR from HC and SC. In HC I used 
> Cards with backgrounds in every project, then in SC I made the jump to 
> windows with many cards and some backgrounds and now I use many stacks with 
> windows with some cards and very few backgrounds. It is a change in the way I 
> have come to think about our style of programming. The message path and 
> properties etc. take on a much more important roll nowadays and some things 
> like background behaviors taken on a much smaller role.
> 
> Anyway, you seem to have found what you need so Welcome and hope to see you 
> more on the list.
> 
> 
> Tom McGrath
> 
> 
> On May 4, 2010, at 10:39 AM, Steve Jones wrote:
> 
>> Aha - that was it.  Didn't even see that option.  No very intuitive.  You 
>> have to create a GROUP and then assign it to be a BACKGROUND rather than 
>> just going straight to a background to begin with.  I guess there's more 
>> flexibility that way.
>> 
>> Thanks!
>> 
>> Steve

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


Re: Newbie question

2010-05-04 Thread Thomas McGrath III
Steve, Welcome to RR.

I also came from the HC/SC background and was taken by the group "behave" 
issue, at first it seemed an oversight to a much used convention. But since 
I've been using RR I have found that I use backgrounds less and less. I think 
this is one thing that truly differentiates RR from HC and SC. In HC I used 
Cards with backgrounds in every project, then in SC I made the jump to windows 
with many cards and some backgrounds and now I use many stacks with windows 
with some cards and very few backgrounds. It is a change in the way I have come 
to think about our style of programming. The message path and properties etc. 
take on a much more important roll nowadays and some things like background 
behaviors taken on a much smaller role.

Anyway, you seem to have found what you need so Welcome and hope to see you 
more on the list.


Tom McGrath


On May 4, 2010, at 10:39 AM, Steve Jones wrote:

> Aha - that was it.  Didn't even see that option.  No very intuitive.  You 
> have to create a GROUP and then assign it to be a BACKGROUND rather than just 
> going straight to a background to begin with.  I guess there's more 
> flexibility that way.
> 
> Thanks!
> 
> Steve
> 
> On May 4, 2010, at 9:35 AM, Colin Holgate wrote:
> 
>> 
>> On May 4, 2010, at 10:30 AM, Steve Jones wrote:
>> 
>>> I see in RR that you put items in GROUPS to have them appear on every card 
>>> in a stack as opposed to SC where you put them in the BACKGROUND.  I have a 
>>> GROUP of items on a single card in a stack. When the CREATE CARD command is 
>>> issued in a handler, a new card is created but the GROUP is not on it.  
>>> What might I be doing wrong?
>> 
>> Look in the inspector palette for the group, and see if its "Behave like a 
>> background" box is checked.
>> 
>> 
>> 
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie question

2010-05-04 Thread René Micout

Le 4 mai 2010 à 17:12, Richard Gaskin a écrit :

> At the top of the Prefs window in the first section there are two radio 
> controls in a group labeled "Property labels are:" with the options being 
> "Description of option" and "Name of RevTalk Property".  Click the latter.

Thank you Richard, I don't know this feature... Very useful... We learn 
everyday...
René___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question

2010-05-04 Thread Devin Asay

On May 4, 2010, at 8:30 AM, Steve Jones wrote:

> Fairly new to RR here, but have used HyperCard and then SuperCard at the 
> amateur level for a while.
> 
> I see in RR that you put items in GROUPS to have them appear on every card in 
> a stack as opposed to SC where you put them in the BACKGROUND.  I have a 
> GROUP of items on a single card in a stack.  When the CREATE CARD command is 
> issued in a handler, a new card is created but the GROUP is not on it.  What 
> might I be doing wrong?

Others have answered your basic question, but I can add that the concept of 
groups in Rev is simultaneously one of the more useful things in Rev, while at 
the same time one of the hardest cognitive shifts for people moving to Rev from 
HyperCard or SuperCard. I think that's because in Rev, groups are far more than 
just a replacement for backgrounds. When I introduce groups in my Rev class I 
tell my students that there are two main reasons for using groups:

1. To associate several controls into a single group for ease of formatting or 
rearranging your layout; or because the controls need to interact in some way. 
For example, if you want to have a set of radio-style buttons, which let the 
user make “mutually-exclusive” choices, you need to group them. When you do 
that, Rev will automatically un-highlight previously highlighted buttons in the 
group.

2. To place the same controls on multiple cards. Often, for example, you may 
want to have buttons on every card of your stack that allow you to go to the 
next and previous cards in the stack. In cases like these, it is best to create 
the Previous/Next buttons on a card, group them, then place the group on all of 
the cards in the stack. The main advantage of this approach are obvious: if you 
have buttons that do the same thing on each card, and you use a group, the 
buttons stay in the same location on each card, have the same appearance on 
each card, and if you have to make a change to a button, you only have to do it 
once, instead of once for every card in the stack.

Groups can appear only on one card, or can be placed on as many cards as you 
want, by using "Place Group" from the Object menu. Once you manually place a 
group on more than one card, Revolution automatically considers it a 
background, and its backgroundBehavior property is automatically set to true. 
If you are not aware of this quirk, it can cause unexpected consequences.

If you want to read more, see http://revolution.byu.edu/groups/Groups.php

When I first switched to Rev from HC, I was completely confused by groups. Once 
I got my head around the concept and figured out how they worked, I was sold 
and would never go back to just card layer vs. background layer.

Anyway, welcome to the revolution. Hope this is useful.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Newbie question

2010-05-04 Thread Richard Gaskin

Steve Jones wrote:

> On May 4, 2010, at 9:35 AM, Colin Holgate wrote:
>>
>> On May 4, 2010, at 10:30 AM, Steve Jones wrote:
>>
>>> I see in RR that you put items in GROUPS to have them appear
>>> on every card in a stack as opposed to SC where you put them
>>> in the BACKGROUND.  I have a GROUP of items on a single card
>>> in a stack. When the CREATE CARD command is issued in a handler,
>>> a new card is created but the GROUP is not on it.  What might
>>> I be doing wrong?
>>
>> Look in the inspector palette for the group, and see if its
> "Behave like a background" box is checked.
>
> Aha - that was it.  Didn't even see that option.  No very intuitive.

Very little in computing is truly "intuitive".  Like driving it's easy 
enough to learn, but like driving there's some learning involved.


Rev's groups seem odd only if you've been using a more limited 
implementation such as the more HyperCard-compliant model in SC.


You nailed it here:

> I guess there's more flexibility that way.

Lots.  With HC you have only one group/background per card, but with Rev 
you can have as many as you like.  They can be nested, and you can 
choose to share them across cards or not as you like.


Very, very flexible indeed.



PS: Rev ships with what I call "Anti-Learning Mode":  for all its 
emphasis on the so-called "English-like" syntax, by default they don't 
use the actual property names for things in the Inspector, instead using 
labels that are ostensibly even more English-like than "English-like". :)


When I'm teaching new users the first thing I suggest is that they go to 
Rev's Preferences and turn off Anti-Learning Mode:


At the top of the Prefs window in the first section there are two radio 
controls in a group labeled "Property labels are:" with the options 
being "Description of option" and "Name of RevTalk Property".  Click the 
latter.


In my experience it greatly accelerates learning to have the Inspector 
set to show the actual property name, so you can see in the UI the same 
tokens you'll later be typing in your scripts, reinforcing the learning 
of the language as you do layout work.


The property in question here is called "backgroundBehavior".  Off by 
default, when set to true newly created cards will have any such shared 
groups automatically placed on them.


You may also want to review the "place" and "remove" commands in the 
RevTalk dictionary, which allow you to place and remove shared groups on 
already-existing cards.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question

2010-05-04 Thread Michael Kann
Steve,
--
Comprehensive answer
--

go here:

http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/

scroll down to number 6 -- groups and backgrounds

download the stack

--
Specific answer
--
Groups themselves are objects: their properties can be inspected and set via 
the object inspector by using the menu command Oject--Object Inspector

click on Basic Properties

Near the bottom you will see a box that says:

Behave like a background

-- check that box

The group should then think it is back in Hypercardland and appear on every 
card.

(I just copied this desciption from Judy's stack. She's the one you need to 
thank).

Good luck,

Mike











--- On Tue, 5/4/10, Steve Jones  wrote:

> From: Steve Jones 
> Subject: Newbie question
> To: "How to use Revolution" 
> Date: Tuesday, May 4, 2010, 9:30 AM
> Fairly new to RR here, but have used
> HyperCard and then SuperCard at the amateur level for a
> while.
> 
> I see in RR that you put items in GROUPS to have them
> appear on every card in a stack as opposed to SC where you
> put them in the BACKGROUND.  I have a GROUP of items on
> a single card in a stack.  When the CREATE CARD command
> is issued in a handler, a new card is created but the GROUP
> is not on it.  What might I be doing wrong?
> 
> Thanks!
> 
> Steve
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



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


Re: Newbie question

2010-05-04 Thread Steve Jones
Aha - that was it.  Didn't even see that option.  No very intuitive.  You have 
to create a GROUP and then assign it to be a BACKGROUND rather than just going 
straight to a background to begin with.  I guess there's more flexibility that 
way.

Thanks!

Steve

On May 4, 2010, at 9:35 AM, Colin Holgate wrote:

> 
> On May 4, 2010, at 10:30 AM, Steve Jones wrote:
> 
>> I see in RR that you put items in GROUPS to have them appear on every card 
>> in a stack as opposed to SC where you put them in the BACKGROUND.  I have a 
>> GROUP of items on a single card in a stack. When the CREATE CARD command is 
>> issued in a handler, a new card is created but the GROUP is not on it.  What 
>> might I be doing wrong?
> 
> Look in the inspector palette for the group, and see if its "Behave like a 
> background" box is checked.
> 
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie question

2010-05-04 Thread Colin Holgate

On May 4, 2010, at 10:30 AM, Steve Jones wrote:

> I see in RR that you put items in GROUPS to have them appear on every card in 
> a stack as opposed to SC where you put them in the BACKGROUND.  I have a 
> GROUP of items on a single card in a stack. When the CREATE CARD command is 
> issued in a handler, a new card is created but the GROUP is not on it.  What 
> might I be doing wrong?

Look in the inspector palette for the group, and see if its "Behave like a 
background" box is checked.




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


Re: Newbie question

2010-05-04 Thread René Micout
I was shocked, I thought for a moment that it was Steve Jobs who responded to 
our concerns...
;-)

Le 4 mai 2010 à 16:30, Steve Jones a écrit :

> Fairly new to RR here, but have used HyperCard and then SuperCard at the 
> amateur level for a while.
> 
> I see in RR that you put items in GROUPS to have them appear on every card in 
> a stack as opposed to SC where you put them in the BACKGROUND.  I have a 
> GROUP of items on a single card in a stack.  When the CREATE CARD command is 
> issued in a handler, a new card is created but the GROUP is not on it.  What 
> might I be doing wrong?
> 
> Thanks!
> 
> Steve
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Newbie question

2010-05-04 Thread Steve Jones
Fairly new to RR here, but have used HyperCard and then SuperCard at the 
amateur level for a while.

I see in RR that you put items in GROUPS to have them appear on every card in a 
stack as opposed to SC where you put them in the BACKGROUND.  I have a GROUP of 
items on a single card in a stack.  When the CREATE CARD command is issued in a 
handler, a new card is created but the GROUP is not on it.  What might I be 
doing wrong?

Thanks!

Steve

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


Re: Newbie question

2009-12-12 Thread Tim Selander

Hi all,

Thanks for the various tips. The searching from the RevMedia help 
menu did not work. It said something about building indexes, 
failed and now it will search nothing. However I did find the 
Nabble forum, and will now give Richard Gaskin's program a try...


Tim Selander
Tokyo, Japan



Richmond Mathewson wrote:

On 12/12/2009 20:50, Mark Swindell wrote:
Speaking of "Nable" is that typo ever going to be corrected in the 
Help pane?


On Dec 11, 2009, at 11:55 PM, Jim Bufalini wrote:

  

Hi Tim,



Any searchable archives of this mailing list? Would like to check
there first before bothering everyone with basic questions.
   
On your Revolution menu, go to Help ->  Revolution Search Engine and 
on the
second tab over from the left you can select Gmane, Mail Archive or 
Nable
and perform your searches right from the Search Engine. There are 
also many

other resources available from the Search Engine.
 


Oddly enough the database update in RevStudio 4 (Mac) didn't work, 
leaving me
with an unusable Search Engine. Same "poo" with Ubuntu (both RevStudio 
and RevMedia)


Didn't have that problem with RevMedia 4 (Mac).

Too "fried and crispy" after that to bother firing up the XP box to see 
"what gives" over there.


My personal experience is that Richard Gaskin's "4W_RevListSearch.rev" 
is the best bet!


It is here:

http://tc.versiontracker.com/product/redir/lid/365918/4W_RevListSearch.rev


Aloha from Hawaii,

Jim Bufalini


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


Re: Newbie question

2009-12-12 Thread Richmond Mathewson

On 12/12/2009 22:05, Jim Bufalini wrote:

Hi Richmond,

   

Oddly enough the database update in RevStudio 4 (Mac) didn't work,
leaving me
with an unusable Search Engine. Same "poo" with Ubuntu (both RevStudio
and RevMedia)

Didn't have that problem with RevMedia 4 (Mac).

Too "fried and crispy" after that to bother firing up the XP box to see
"what gives" over there.
 

There is a simple text file, which on PC is called
SearchEngineStandardUrls.txt and found in the Documentation folder under
your Rev version and release folder that hasn't been updated since before
Eric died and is out of date. It's probably the cause of your problem. I had
suggested earlier and will suggest again that this file get updated and
moved to the plugins folder, so that it's not "different" every time you
launch a different version of rev. The Revolution Search Engine really is a
nice piece of work. It's just need to be brought current.

   


Yes, it is there on both Mac and Linux.

Actually, about 90% of these URLs don't seem to work anyway,
suggesting that is it really quite considerably outdated.

Obviously this is another "dark corner" that was neglected in
the "big push" we have witnessed recently; like most big pushes,
something always gets overlooked . . .  :)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Newbie question

2009-12-12 Thread Jim Bufalini
Hi Richmond,

> Oddly enough the database update in RevStudio 4 (Mac) didn't work,
> leaving me
> with an unusable Search Engine. Same "poo" with Ubuntu (both RevStudio
> and RevMedia)
> 
> Didn't have that problem with RevMedia 4 (Mac).
> 
> Too "fried and crispy" after that to bother firing up the XP box to see
> "what gives" over there.

There is a simple text file, which on PC is called
SearchEngineStandardUrls.txt and found in the Documentation folder under
your Rev version and release folder that hasn't been updated since before
Eric died and is out of date. It's probably the cause of your problem. I had
suggested earlier and will suggest again that this file get updated and
moved to the plugins folder, so that it's not "different" every time you
launch a different version of rev. The Revolution Search Engine really is a
nice piece of work. It's just need to be brought current.

Aloha from Hawaii,

Jim Bufalini

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


Re: Newbie question

2009-12-12 Thread Richmond Mathewson

On 12/12/2009 20:50, Mark Swindell wrote:

Speaking of "Nable" is that typo ever going to be corrected in the Help pane?

On Dec 11, 2009, at 11:55 PM, Jim Bufalini wrote:

   

Hi Tim,

 

Any searchable archives of this mailing list? Would like to check
there first before bothering everyone with basic questions.
   

On your Revolution menu, go to Help ->  Revolution Search Engine and on the
second tab over from the left you can select Gmane, Mail Archive or Nable
and perform your searches right from the Search Engine. There are also many
other resources available from the Search Engine.
 


Oddly enough the database update in RevStudio 4 (Mac) didn't work, 
leaving me
with an unusable Search Engine. Same "poo" with Ubuntu (both RevStudio 
and RevMedia)


Didn't have that problem with RevMedia 4 (Mac).

Too "fried and crispy" after that to bother firing up the XP box to see 
"what gives" over there.


My personal experience is that Richard Gaskin's "4W_RevListSearch.rev" 
is the best bet!


It is here:

http://tc.versiontracker.com/product/redir/lid/365918/4W_RevListSearch.rev


Aloha from Hawaii,

Jim Bufalini

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

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

   


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


Re: Newbie question

2009-12-12 Thread Mark Swindell
Speaking of "Nable" is that typo ever going to be corrected in the Help pane?

On Dec 11, 2009, at 11:55 PM, Jim Bufalini wrote:

> Hi Tim,
> 
>> Any searchable archives of this mailing list? Would like to check
>> there first before bothering everyone with basic questions.
> 
> On your Revolution menu, go to Help -> Revolution Search Engine and on the
> second tab over from the left you can select Gmane, Mail Archive or Nable
> and perform your searches right from the Search Engine. There are also many
> other resources available from the Search Engine.
> 
> Aloha from Hawaii,
> 
> Jim Bufalini
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie question

2009-12-12 Thread Mark Schonewille

Hi Tim,

There's a FireFox plug-in to search the archives on GMane near the  
bottom of this website .


--
Best regards,

Mark Schonewille

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

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

Op 12 dec 2009, om 08:49 heeft Tim Selander het volgende geschreven:


Any searchable archives of this mailing list? Would like to check
there first before bothering everyone with basic questions.

TIA

Tim Selander
Tokyo, Japan



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


Re: Newbie question

2009-12-11 Thread stephen barncard
Check NABBLE for the archives.
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/12/11 Tim Selander 

> Any searchable archives of this mailing list? Would like to check
> there first before bothering everyone with basic questions.
>
> TIA
>
> Tim Selander
> Tokyo, Japan
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Newbie question

2009-12-11 Thread Jim Bufalini
Hi Tim,

> Any searchable archives of this mailing list? Would like to check
> there first before bothering everyone with basic questions.

On your Revolution menu, go to Help -> Revolution Search Engine and on the
second tab over from the left you can select Gmane, Mail Archive or Nable
and perform your searches right from the Search Engine. There are also many
other resources available from the Search Engine.

Aloha from Hawaii,

Jim Bufalini

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


Newbie question

2009-12-11 Thread Tim Selander
Any searchable archives of this mailing list? Would like to check
there first before bothering everyone with basic questions.

TIA

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


Re: Newbie question - Using multi-line message box

2009-10-16 Thread Jim Sims


On Oct 16, 2009, at 8:11 AM, Kay C Lan wrote:

As far as I know, the only difference between UK, USA, MB and MBP  
keyboards

are some graphics and their .keylayout files.


The Return key on my UK keyboard uses up the far right space of two  
rows, it is sort of like an upsidedown L shape. That means that the |  
and \ keys are moved down one row lower than on the the USA keyboard  
to make room for the top half of the UK Return key.


The UK return key is also narrower on the bottom row it occupies than  
all other keys but on the top it is the same width as most other keys.


On my USA keyboard both Shift keys are the same size, unlike the UK  
which has a much smaller key on the left.


I place my 17" Mac up off my desk for better ergonomics (not beding my  
back over) and use a wireless keyboard when at home. When out with the  
Mac I go back to the USA built-in keys. I've adapted.


I rescued that UK keyboard from a cruel beating and excessive verbal  
abuse as my partner Cloe, a touch typist, could not adapt to what she  
considered 'wrong behavior' in a keyboard.   ;-)



sims

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


Re: Newbie question - Using multi-line message box

2009-10-15 Thread Kay C Lan
A while ago I recommended Ukelele to Richmond who wanted to change his Caps
Lock key into a Shift Lock key. I understand it did the job. Basically
Ukelele a GUI for modifying .keylayout files on OS X. If you have two Option
keys you should be able to turn one of them into Enter. Actually you can
turn any key into Enter.

You'll find it here:

http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=ukelele

As far as I know, the only difference between UK, USA, MB and MBP keyboards
are some graphics and their .keylayout files.

HTH

On Thu, Oct 15, 2009 at 6:34 AM, Colin Holgate  wrote:

>
> On Oct 14, 2009, at 6:09 PM, Jim Sims wrote:
>
>  There has been a difference in UK and USA keyboards for years.
>>
>> My UK keyboard has an alt/option key to the right of the command key
>>SPACE BAR  - CMD KEY  -  ALT/OPTION KEY
>>
>> My USA keyboard has:
>>SPACE BAR  - CMD KEY  -  ENTER KEY
>>
>
> It's not just a US/UK thing, my colleague's keyboard has the option key
> where I have the enter key, and they're both US keyboard. Mine is a 17 inch
> MBP though, and that could be partly why there's a difference.
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - Using multi-line message box

2009-10-15 Thread Andre.Bisseret


Le 15 oct. 09 à 00:52, Andre Garzia a écrit :

mine is british... it even has that silly pound symbol that I will  
never use

here in Brasil...


Bonjour,
Are you sure ? ;-)
One french saying is : Il ne faut pas dire : fontaine je ne boirai pas  
de ton eau (something like : don't say : Fountain I shall not drink  
your water) ;-))

Just an example :
Suppose you have to display a picture in a scrolling text field,
then pound symbol (as few others) could be useful, insofar you are  
sure it will not appear in the text,


so no problem when setting its imageSource  ;-)))

Best regards from Grenoble

André

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


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Andre Garzia
mine is british... it even has that silly pound symbol that I will never use
here in Brasil...

On Wed, Oct 14, 2009 at 7:09 PM, Jim Sims  wrote:

>  On Oct 14, 2009, at 1:32 PM, Colin Holgate wrote:
>>>
 For what it's worth, the MacBook Pro I have has an Enter key to the
 right of the right-side command key, and that works as an Enter key
 should. I see that MacBooks have a second Option key there instead.

>>> As do the newest MacBook Pros. :-( Have to use the function modifier  key
>>> now for Enter key.
>>>
>>
>
> There has been a difference in UK and USA keyboards for years.
>
> My UK keyboard has an alt/option key to the right of the command key
> SPACE BAR  - CMD KEY  -  ALT/OPTION KEY
>
> My USA keyboard has:
> SPACE BAR  - CMD KEY  -  ENTER KEY
>
> There are a few other differences that make me like the US keyboard more
> but that's another story.
>
> Are you saying that now both UK and USA keyboards lack an Enter key?
>
> sims
>
>
>
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



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


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Colin Holgate


On Oct 14, 2009, at 6:09 PM, Jim Sims wrote:


There has been a difference in UK and USA keyboards for years.

My UK keyboard has an alt/option key to the right of the command key
SPACE BAR  - CMD KEY  -  ALT/OPTION KEY

My USA keyboard has:
SPACE BAR  - CMD KEY  -  ENTER KEY


It's not just a US/UK thing, my colleague's keyboard has the option  
key where I have the enter key, and they're both US keyboard. Mine is  
a 17 inch MBP though, and that could be partly why there's a difference.



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


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Jim Sims

On Oct 14, 2009, at 1:32 PM, Colin Holgate wrote:

For what it's worth, the MacBook Pro I have has an Enter key to the
right of the right-side command key, and that works as an Enter key
should. I see that MacBooks have a second Option key there instead.
As do the newest MacBook Pros. :-( Have to use the function  
modifier  key now for Enter key.



There has been a difference in UK and USA keyboards for years.

My UK keyboard has an alt/option key to the right of the command key
 SPACE BAR  - CMD KEY  -  ALT/OPTION KEY

My USA keyboard has:
 SPACE BAR  - CMD KEY  -  ENTER KEY

There are a few other differences that make me like the US keyboard  
more but that's another story.


Are you saying that now both UK and USA keyboards lack an Enter key?

sims





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


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Alex Tweedly

Richard Gaskin wrote:


Between that and the full-glare reflective screen it's enough to keep 
me from upgrading my MBP for a while.



The matte screen is available (as a $50 option !!) for both 15- and 17- 
inch MBPs


-- Alex (who is trying hard to convince himself to buy one NOW)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Richard Gaskin

Devin Asay wrote:

On Oct 14, 2009, at 1:32 PM, Colin Holgate wrote:

For what it's worth, the MacBook Pro I have has an Enter key to the
right of the right-side command key, and that works as an Enter key
should. I see that MacBooks have a second Option key there instead.


As do the newest MacBook Pros. :-( Have to use the function modifier  
key now for Enter key.


Is there a Preference or alternate keyboard map to regain that lost key?

Between that and the full-glare reflective screen it's enough to keep me 
from upgrading my MBP for a while.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Devin Asay


On Oct 14, 2009, at 1:32 PM, Colin Holgate wrote:



On Oct 14, 2009, at 3:10 PM, william humphrey wrote:


So if you want to run a multi-line script you have to hold the
function key down on the mac laptop keyboard and hit the return key
for it
to be an enter key


For what it's worth, the MacBook Pro I have has an Enter key to the
right of the right-side command key, and that works as an Enter key
should. I see that MacBooks have a second Option key there instead.


As do the newest MacBook Pros. :-( Have to use the function modifier  
key now for Enter key.



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Andre Garzia
my macbook pro has a second option key as well... :-/

On Wed, Oct 14, 2009 at 4:32 PM, Colin Holgate  wrote:

>
> On Oct 14, 2009, at 3:10 PM, william humphrey wrote:
>
>  So if you want to run a multi-line script you have to hold the
>> function key down on the mac laptop keyboard and hit the return key for it
>> to be an enter key
>>
>
> For what it's worth, the MacBook Pro I have has an Enter key to the right
> of the right-side command key, and that works as an Enter key should. I see
> that MacBooks have a second Option key there instead.
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



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


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Colin Holgate


On Oct 14, 2009, at 3:10 PM, william humphrey wrote:


So if you want to run a multi-line script you have to hold the
function key down on the mac laptop keyboard and hit the return key  
for it

to be an enter key


For what it's worth, the MacBook Pro I have has an Enter key to the  
right of the right-side command key, and that works as an Enter key  
should. I see that MacBooks have a second Option key there instead.



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


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Richmond Mathewson

william humphrey wrote:

When you're using a mac-laptop the enter key is a combination enter key and
returnkey. So if you want to run a multi-line script you have to hold the
function key down on the mac laptop keyboard and hit the return key for it
to be an enter key. I spent ten minutes or so trying to find another way to
do this (there usually is another way) but could not find a button or
anything in the RunRev IDE that would run a multi-line script if you don't
have an enter key.
___
  

Try connecting a cheap, USB, 3-button mouse (I prefer Logitech) mouse
to your laptop: life will look better!
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - Using multi-line message box

2009-10-14 Thread Andre Garzia
use the FN key on the mac to make your return an enter... now, hold
CMD+FN+RETURN and soon we'll ressemble emacs in its cumbersome keychords...

On Wed, Oct 14, 2009 at 4:10 PM, william humphrey <
b...@bluewatermaritime.com> wrote:

> When you're using a mac-laptop the enter key is a combination enter key and
> returnkey. So if you want to run a multi-line script you have to hold the
> function key down on the mac laptop keyboard and hit the return key for it
> to be an enter key. I spent ten minutes or so trying to find another way to
> do this (there usually is another way) but could not find a button or
> anything in the RunRev IDE that would run a multi-line script if you don't
> have an enter key.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



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


Newbie question - Using multi-line message box

2009-10-14 Thread william humphrey
When you're using a mac-laptop the enter key is a combination enter key and
returnkey. So if you want to run a multi-line script you have to hold the
function key down on the mac laptop keyboard and hit the return key for it
to be an enter key. I spent ten minutes or so trying to find another way to
do this (there usually is another way) but could not find a button or
anything in the RunRev IDE that would run a multi-line script if you don't
have an enter key.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Newbie question

2009-05-16 Thread Jim Bufalini
John Hunter wrote:

> I'm looking at Rev and RB and was wondering if there are any samples /
> demo stacks that show how to use sqlite databse without using buttons
> to create or connect to.
> It would be really helpful to see how to create / connect to sqlite
> databases using code as opposed to buttons.

Hi John,

What Joe said is correct. Just to expand on what he said...

When you click on a button it generates a mouseUp message. So let's say you
create a command like:

On OpenMyDatabase
 get revOpenDatabase("sqlite", "C:/testdbsqlite.db", , , , ) -- right from
the docs on opening an SQLite DB
End OpenMyDatabase

Or:

On OpenMyDatabase pDataBasePathAndName
 get revOpenDatabase("sqlite", pDataBasePathAndName, , , , )
End OpenMyDatabase


Then, on the mouseUp handler of the button, you could have:

On mouseUp
  OpenMyDatabase -- executes your OpenMyDatabase command on the click of the
button
End mouseUp

But there are many actions that generate messages like opening a stack
(preOpenStack and OpenStack) and opening a card (preOpenCard and openCard)
as well as mouse movements and all manner of actions. You can hook your
OpenMyDatabase into any message, not just the messages associated with a
click on a button.

So, you can hook your OpenMyDatabase command into any message. For example,
if you want to open the database when your stack first launches, you could
have:

On preOpenStack
  OpenMyDatabase "c:\WhateverDirectory\WhateverDBName.db" --Calls
OpenMyDatabase with a PC path & name of the SQLite DB.
End preOpenStack

This would open the database as soon as your stack launches and before it
displays.

Hope these examples help. Look at the Rev dictionary for type "message" to
see all the different places you can hook your own code into.

Aloha from Hawaii,

Jim Bufalini


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


Re: Newbie question

2009-05-16 Thread Joe Lewis Wilkins

Hi John,

Were it not the weekend, I'd pass on this and let someone with first  
hand experience and sqlite databases, but


You may do just about anything via an on openStack or even a on  
preOpenStack handler that would be run as soon as or even before your  
stack is opened. This allows you to do whatever you need without the  
use of buttons.


I hope this starts you off in the right direction.

Joe Wilkins

On May 16, 2009, at 8:02 AM, John Hunter wrote:


Hi All,

I'm looking at Rev and RB and was wondering if there are any  
samples / demo stacks that show how to use sqlite databse without  
using buttons to create or connect to.
It would be really helpful to see how to create / connect to sqlite  
databases using code as opposed to buttons.


Regards,

John

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

http://lists.runrev.com/mailman/listinfo/use-revolution


Joe Lewis Wilkins
Architect
Director of Product Development for GSI
760-738-1721



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


Newbie question

2009-05-16 Thread John Hunter

Hi All,

I'm looking at Rev and RB and was wondering if there are any samples /  
demo stacks that show how to use sqlite databse without using buttons  
to create or connect to.
It would be really helpful to see how to create / connect to sqlite  
databases using code as opposed to buttons.


Regards,

John

 
___

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


Re: Newbie question - how to check for a varible

2009-05-10 Thread Bernard Devlin
The message box is an amazing feature.  You can use it in a debugging
session to work with the state of your code at the breakpoint.

Bernard

On Fri, May 8, 2009 at 7:43 AM, Stephen Cox  wrote:
> Lol. Of course. I knew it would be easy. Thanks.
>
> For the life of me I could not find an example in the docs; the user guild
> or online.
>
> The messagebox? I hardly use it. Gets in the way mostly. I've been using it
> to look at global variables. I know you can run commands. But if you don't
> know the commands, it's no help. Or am I wrong about this?
>
>
> On 5/8/09 2:35 AM, "Joe Lewis Wilkins"  wrote:
>
>> Stephen,
>>
>> Without even checking, since it's the way it would be done in HC, just
>> use:
>>
>> if tUsername is empty then 
>>
>> if tUsername exists then ...
>>
>> You were already there. Didn't you check these out in the messagebox?
>>
>> Joe Wilkins
>>
>> On May 7, 2009, at 11:25 PM, Stephen Cox wrote:
>>
>>> Really two questions:
>>>
>>> How do I check if a variable is empty? Sort of like;
>>>
>>> If !empty(tUsername)
>>>    // process here
>>> Endif
>>>
>>> Empty() is a Foxpro function that pops if what you are checking is
>>> empty. I
>>> can¹t seem to find it¹s equivalent in revolution. Am I approaching
>>> this the
>>> wrong way? And can I check fields the same way?
>>>
>>> I suppose I could create an empty variable and just compare the 2?
>>> But is
>>> there an easier way?
>>>
>>> Next question; checking the existence of a variable? Now I know I
>>> can turn
>>> on Strict Compilation (and I have) but I¹d rather have the assurance
>>> of
>>> checking to see if a variable exist? Is this a non-issue in
>>> Revolution?
>>>
>>> Thanks
>>>
>>> -Stephen Cox
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie Question 5 of N

2009-05-10 Thread Richmond Mathewson

Well, as well as all the other useful things that everybody is proposing
how about a sort of "Top of the Pops" of errors?

My personal favourite crops up all the time:

flase, fales, flsae . . . but, very rarely 'false'

Now . . . variables . . .


Pompous Section starts here.

Way back when, 'while dinosaurs ruled the earth' (as my kids say),
I was studying PASCAL 5, and rapidly discovered the easiest way to
keep track of variables was to stop calling them names such as 'X',
'Y' and 'Z'.

Having jumped from PASCAL and BASIC to Hypercard without looking
sideways I have always followed the following policy:

name variables in such a way as they have some connexion with
what they do.

for instance; if you poke around in my stacks you will find variables
with names such as 'KOUNT1', 'ADDER'. 'HITE', 'WIDD', and a whole
lot with either Scots or Bulgarian names, which proves useful when
the obvious names for those variables in English are reserved words.

similarly with fields, which I always prefix with a lower case 'f';
'fTANK',  'fBANK', 'fENTRY', 'fRESULT'

now this maybe unconventional, but when I look back at code 3 or
4 years down the line I find it more informative than 'nGrav' or
'asTpX', even if those have been declared.

After all, when I see:

put vRESULT into fld "fRESULT"

it shouldn't be hard to work out what's going on.
--

Now, I agree with the various remarks about non-native speakers
who are coding in Revolution only insofar as they need to understand
some of the quasi-English terms; but I am not entirely sure how
Strict Compilation is going to help with that.

Surely what is needed is an IN-BUILT spell checker attached to the
Script Editor.

Mark Wieder wrote:

Richmond-

Saturday, May 9, 2009, 2:24:47 PM, you wrote:

  

Writing as someone who, generally, learns from his errors, and
trying to work out why they are error, this sounds as if it would
not be a great advantage to me.



Not to worry - there's plenty of errors to go around...

...I'd be happy to let you have some of mine...

  


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


Re: Newbie Question 5 of N

2009-05-09 Thread Mark Wieder
Richmond-

Saturday, May 9, 2009, 2:24:47 PM, you wrote:

> Writing as someone who, generally, learns from his errors, and
> trying to work out why they are error, this sounds as if it would
> not be a great advantage to me.

Not to worry - there's plenty of errors to go around...

...I'd be happy to let you have some of mine...

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

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


Re: Newbie Question 5 of N

2009-05-09 Thread Stephen Cox
Actually I'm not so sure it even matters, considering this isn't a typed
language.

I was just surprised when I ran my first try at code and had errors at
runtime. Almost every compiler I've used checked variables. Why I asked in
the first place.





On 5/9/09 5:24 PM, "Richmond Mathewson"  wrote:

> Writing as someone who, generally, learns from his errors, and
> trying to work out why they are error, this sounds as if it would
> not be a great advantage to me.
> 
> Probably much more useful for somebody trying to belt out
> something with a very quick SDLC or turn-around.
> 
> Mark Wieder wrote:
>> Richmond-
>> 
>> Saturday, May 9, 2009, 1:14:47 PM, you wrote:
>> 
>>   
>>> So; what is 'strict compilation', and why should we be
>>> interested?
>>> 
>> 
>> "Strict compilation" was formerly referred to as "explictVars".
>> Setting the checkbox *forces* you to declare all your variables or be
>> faced with compile errors. The advantage is that it cuts down
>> dramaticly on the number of bugs in one's coding. You can't, for
>> example, mistakenly type and compile
>> 
>> put the last chr of line x of field 3
>> or
>> put thevariablenames into field 1
>> 
>>   
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie Question 5 of N

2009-05-09 Thread Richmond Mathewson

Writing as someone who, generally, learns from his errors, and
trying to work out why they are error, this sounds as if it would
not be a great advantage to me.

Probably much more useful for somebody trying to belt out
something with a very quick SDLC or turn-around.

Mark Wieder wrote:

Richmond-

Saturday, May 9, 2009, 1:14:47 PM, you wrote:

  

So; what is 'strict compilation', and why should we be
interested?



"Strict compilation" was formerly referred to as "explictVars".
Setting the checkbox *forces* you to declare all your variables or be
faced with compile errors. The advantage is that it cuts down
dramaticly on the number of bugs in one's coding. You can't, for
example, mistakenly type and compile

put the last chr of line x of field 3
or
put thevariablenames into field 1

  


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


Re: Newbie Question 5 of N

2009-05-09 Thread Mark Wieder
Richmond-

Saturday, May 9, 2009, 1:14:47 PM, you wrote:

> So; what is 'strict compilation', and why should we be
> interested?

"Strict compilation" was formerly referred to as "explictVars".
Setting the checkbox *forces* you to declare all your variables or be
faced with compile errors. The advantage is that it cuts down
dramaticly on the number of bugs in one's coding. You can't, for
example, mistakenly type and compile

put the last chr of line x of field 3
or
put thevariablenames into field 1

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

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


Newbie Question 5 of N

2009-05-09 Thread Richmond Mathewson

Just found 'strict compilation' in my trial of RR 3.5; but couldn't
find anything about what it actually is (which makes Stephen Cox,
who is passing himself off as a Newbie, look much longer in the
tooth than I am).

So; what is 'strict compilation', and why should we be
interested?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - how to check for a varible

2009-05-09 Thread Mark Wieder
Stephen-

Saturday, May 9, 2009, 11:15:01 AM, you wrote:

> Wouldn't "I" && "am" be the same as "I " & "am"? ((notice the space after
> "I" in the second example")).

also the same as "I" & " am"

...and just for good measure...

"I" & space & "am"

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

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


Re: Newbie question - how to check for a varible

2009-05-09 Thread J. Landman Gay

Stephen Cox wrote:

By the way, off topic a bit:

Wouldn't "I" && "am" be the same as "I " & "am"? ((notice the space after
"I" in the second example")).


Yup.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - how to check for a varible

2009-05-09 Thread Joe Lewis Wilkins

Certainly should be the same. Isn't it? It is for me with 3.5.

Joe Wilkins

On May 9, 2009, at 11:15 AM, Stephen Cox wrote:


By the way, off topic a bit:

Wouldn't "I" && "am" be the same as "I " & "am"? ((notice the space  
after

"I" in the second example")).



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


Re: Newbie question - how to check for a varible

2009-05-09 Thread Stephen Cox
By the way, off topic a bit:

Wouldn't "I" && "am" be the same as "I " & "am"? ((notice the space after
"I" in the second example")).


On 5/9/09 12:57 PM, "J. Landman Gay"  wrote:

> Stephen Cox wrote:
>> Wait. I don't get this. You saying that checking if an unused variable is
>> empty returns false? Does revolution put some data in a variable when
>> created? 
> 
> Sort of, but only in specific cases, which is mostly a side-effect of
> how friendly Rev's interpreter is and how it deals with strings. (The
> discussion about quoted field names shows how flexible Rev is with
> strings.) If a variable is not specifically created with a value, the
> value of the variable is the variable's name itself.
> 
> This creates a variable without assigning it any value:
> 
> on mouseup
>   put (var = empty) && "Var = " & var
> end mouseup
> 
> You get: false var = var
> 
> But this assigns a value and gives what you'd expect:
> 
> on mouseUp
>   put empty into var
>   put (var = empty) && "Var = " & var
> end mouseUp
> 
> Gives: true var =

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


Re: Newbie question - how to check for a varible

2009-05-09 Thread J. Landman Gay

Stephen Cox wrote:

Wait. I don't get this. You saying that checking if an unused variable is
empty returns false? Does revolution put some data in a variable when
created? 


Sort of, but only in specific cases, which is mostly a side-effect of 
how friendly Rev's interpreter is and how it deals with strings. (The 
discussion about quoted field names shows how flexible Rev is with 
strings.) If a variable is not specifically created with a value, the 
value of the variable is the variable's name itself.


This creates a variable without assigning it any value:

on mouseup
 put (var = empty) && "Var = " & var
end mouseup

You get: false var = var

But this assigns a value and gives what you'd expect:

on mouseUp
 put empty into var
 put (var = empty) && "Var = " & var
end mouseUp

Gives: true var =

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - how to check for a varible

2009-05-09 Thread J. Landman Gay

Mark Wieder wrote:

Jacque-

Friday, May 8, 2009, 11:25:47 AM, you wrote:


how the engine works. I personally do not use explicit variables, I
never declare them specifically, and I have never had any problem.


...the first step in recovery is recognizing you have a problem... 



Bah. Don't start with me. ;) Explict variables are for people who want 
their code to look more complicated than it is, perhaps to impress 
someone. :P


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - how to check for a varible

2009-05-09 Thread Mark Wieder
Jacque-

Friday, May 8, 2009, 11:25:47 AM, you wrote:

> how the engine works. I personally do not use explicit variables, I
> never declare them specifically, and I have never had any problem.

...the first step in recovery is recognizing you have a problem... 

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

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


Re: Newbie question - how to check for a varible

2009-05-09 Thread Stephen Cox
Wait. I don't get this. You saying that checking if an unused variable is
empty returns false? Does revolution put some data in a variable when
created? 


On 5/9/09 2:44 AM, "Martin Blackman"  wrote:

> There is a gotcha to be aware of here.
> 
> Checking if a previously unused variable is empty returns false. That
> has caught me out a few times.  I wonder why the answer is false. I
> think the engine interprets the variable as a string instead, in the
> same way that 'answer hello' without quotes around hello works.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie question - how to check for a varible

2009-05-08 Thread Martin Blackman
There is a gotcha to be aware of here.

Checking if a previously unused variable is empty returns false. That
has caught me out a few times.  I wonder why the answer is false. I
think the engine interprets the variable as a string instead, in the
same way that 'answer hello' without quotes around hello works.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie question - Set the cursor to....

2009-05-08 Thread Joe Lewis Wilkins

Stephen,

One of the frustrating aspects about both HC and Rev is that the same  
things may be accomplished in a number of different ways. And  
assignments are particularly so, since you have to do things like:


put 20 into tVar instead of what you might expect tVar = 20

Which is one of the reasons the messageBox is so important. Testing,  
testing, testing. The set, put and get concepts are fundamental.


Joe Wilkins

On May 8, 2009, at 2:07 PM, Richmond Mathewson wrote:


Very badly documented:

on mouseEnter
set the lockCursor to true
set the cursor to hand
end mouseEnter

on mouseLeave
set the cursor to arrow
set the lockCursor to false
end mouseLeave


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


Re: Newbie question - Set the cursor to....

2009-05-08 Thread Joe Lewis Wilkins

Stephen,

As the most useful tip I can think of for someone NOT familiar with  
HC, learn to use the messageBox, which you may display by clicking on  
the third icon from the left in the Rev Toolbar. It allows you to test  
bits of code without having to do a lot of development. Importantly,  
it has two modes: a single line and a multi-line. Anytime you wonder  
if you have something that may work, test it in the messageBox. With  
the multi-line mode you can test some pretty advanced scripts. It was  
one of the very best features brought over to Rev from HC. It is  
always available when working in the IDE.


HTH,

Joe Wilkins

On May 8, 2009, at 1:56 PM, Stephen Cox wrote:

I’m gonna preface [the subject] all my questions with “Newbie” so  
those who
have no interest in nubs can move on. Trust, I know it can be  
painful. ;)


I got a card. With a label or button. I want to change the cursor of  
the
mouse to a hand then back to arrow when the user moves on/off the  
object.


on mouseEnter
   set the cursor to hand
end mouseEnter

on mouseLeave
  set the cursor to arrow
end mouseLeave

The above should work? Or am I missing something about the cursor  
command? I
placed a breakpoint and followed the code. It fires, just doesn’t  
change the

cursor.

Maybe I’m using mouseEnter/mouseLeave incorrectly?

Thanks for any info.

-Stephen Cox


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


Re: Newbie question - Set the cursor to....

2009-05-08 Thread Mark Schonewille

Hi Stephen,

You need to lock the cursor right before or after setting it.  
Otherwise, the cursor will be reset as soon as the handler finishes  
running.


on mouseEnter
   lock cursor
   set the cursor to hand
end mouseEnter

on mouseLeave
  set the cursor to arrow
  unlock cursor
end mouseLeave

You may need to put the unlock cursor command in multiple places. For  
example, there may be situation where going to a new cards imlplies a  
cursor change.


on preOpenCard
  unlock cursor
end preOpenCard

There is also a property defaultCursor, which might be useful. You can  
find more about it in the docs.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

New: Snapper Screen Recorder 2.0.1
Download at http://snapper.economy-x-talk.com

On 8 mei 2009, at 22:56, Stephen Cox wrote:

I’m gonna preface [the subject] all my questions with “Newbie” so  
those who
have no interest in nubs can move on. Trust, I know it can be  
painful. ;)


I got a card. With a label or button. I want to change the cursor of  
the
mouse to a hand then back to arrow when the user moves on/off the  
object.


on mouseEnter
   set the cursor to hand
end mouseEnter

on mouseLeave
  set the cursor to arrow
end mouseLeave

The above should work? Or am I missing something about the cursor  
command? I
placed a breakpoint and followed the code. It fires, just doesn’t  
change the

cursor.

Maybe I’m using mouseEnter/mouseLeave incorrectly?

Thanks for any info.

-Stephen Cox



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


Re: Newbie question - Set the cursor to....

2009-05-08 Thread Richmond Mathewson

Very badly documented:

on mouseEnter
 set the lockCursor to true
 set the cursor to hand
end mouseEnter

on mouseLeave
 set the cursor to arrow
 set the lockCursor to false
end mouseLeave

Stephen Cox wrote:

I¹m gonna preface [the subject] all my questions with ³Newbie² so those who
have no interest in nubs can move on. Trust, I know it can be painful. ;)

I got a card. With a label or button. I want to change the cursor of the
mouse to a hand then back to arrow when the user moves on/off the object.

on mouseEnter
set the cursor to hand
end mouseEnter

on mouseLeave
   set the cursor to arrow
end mouseLeave

The above should work? Or am I missing something about the cursor command? I
placed a breakpoint and followed the code. It fires, just doesn¹t change the
cursor.

Maybe I¹m using mouseEnter/mouseLeave incorrectly?

Thanks for any info.

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

  


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


Newbie question - Set the cursor to....

2009-05-08 Thread Stephen Cox
I¹m gonna preface [the subject] all my questions with ³Newbie² so those who
have no interest in nubs can move on. Trust, I know it can be painful. ;)

I got a card. With a label or button. I want to change the cursor of the
mouse to a hand then back to arrow when the user moves on/off the object.

on mouseEnter
set the cursor to hand
end mouseEnter

on mouseLeave
   set the cursor to arrow
end mouseLeave

The above should work? Or am I missing something about the cursor command? I
placed a breakpoint and followed the code. It fires, just doesn¹t change the
cursor.

Maybe I¹m using mouseEnter/mouseLeave incorrectly?

Thanks for any info.

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


Re: Newbie question - how to check for a varible

2009-05-08 Thread J. Landman Gay

Stephen Cox wrote:


Next question; checking the existence of a variable? Now I know I can turn
on Strict Compilation (and I have) but I¹d rather have the assurance of
checking to see if a variable exist? Is this a non-issue in Revolution?


It is a non-issue. Rev does not require you to declare variables; they 
are created automatically just by using them. I have never seen that fail.


However, since you have turned on explicit variables, you do have to 
declare them -- but this relates more to how the the compiler works than 
how the engine works. I personally do not use explicit variables, I 
never declare them specifically, and I have never had any problem.


I should note that explicit variables is a hot topic, with proponents on 
both sides, and has been the subject of more than one thread here. ;)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Newbie question - how to check for a varible

2009-05-08 Thread Jim Bufalini
Hi Stephen,

> How do I check if a variable is empty? Sort of like;
> 
> If !empty(tUsername)
> // process here
> Endif
> 
> Empty() is a Foxpro function that pops if what you are checking is
> empty. I
> can¹t seem to find it¹s equivalent in revolution. Am I approaching this
> the
> wrong way? And can I check fields the same way?
> 
> I suppose I could create an empty variable and just compare the 2? But
> is
> there an easier way?

If tUsername = empty then...
If tUsername is empty then...
If tUsername = "" then...
If tUsername is "" then...

For Boolean:

If tUsername then... true if tUsername is true. False if anything else.
If not tUsername then... true if tUsername is false or empty.
 
> Next question; checking the existence of a variable? Now I know I can
> turn
> on Strict Compilation (and I have) but I¹d rather have the assurance of
> checking to see if a variable exist? Is this a non-issue in Revolution?

Depends on what you mean by existence. ;-) If you have explicit variables on
then you must declare a local variable for the compile to succeed. Script
locals and globals always need to be declared or they will be interpreted as
local. It's good practice to declare all variables to avoid typo errors.

If you want to know if you are using a variable name check out *the
variableNames* and *the globalNames* in the docs. For objects, you can use
syntax like:

If there is a stack/card/button/... or other object name ... "theName" then 
If exists(object) then...

There are lots of options in these areas. They are all well documented in
the docs. ;-) Just keep in mind that in Rev all variables are essentially
strings and so there is not the "type" necessary in other languages. So even
if *if myNumericVar is an integer then...* returns true, myNumericVar is
still a "string." Now as a newbie this can get a little confusing because
the value of a var can be binary and not ASCII. But just think of it as a
"string of bytes" of any type that are in a "container" or are a "chunk" of
bytes. Hint, hint, look up these words in the docs. ;-)

Aloha from Hawaii

Jim Bufalini

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


Re: Newbie question - how to check for a varible

2009-05-07 Thread Stephen Cox
Ahhh! "Exists" was there. I was looking at it from the wrong end. Thanks.

God I feel like I have to unlearn all my coding habits and thinking.


On 5/8/09 2:47 AM, "Joe Lewis Wilkins"  wrote:

> Stephen, I should have checked. Check "exists" in the dictionary for
> the rev syntax. Not quite as straightforward or easy as with HC.
> Sorry,
> Joe Wilkins
> 
> On May 7, 2009, at 11:35 PM, Joe Lewis Wilkins wrote:
> 
>> Stephen,
>> 
>> Without even checking, since it's the way it would be done in HC,
>> just use:
>> 
>> if tUsername is empty then 
>> 
>> if tUsername exists then ...
>> 
>> You were already there. Didn't you check these out in the messagebox?
>> 
>> Joe Wilkins
>> 
>> On May 7, 2009, at 11:25 PM, Stephen Cox wrote:
>> 
>>> Really two questions:
>>> 
>>> How do I check if a variable is empty? Sort of like;
>>> 
>>> If !empty(tUsername)
>>>   // process here
>>> Endif
>>> 
>>> Empty() is a Foxpro function that pops if what you are checking is
>>> empty. I
>>> can¹t seem to find it¹s equivalent in revolution. Am I approaching
>>> this the
>>> wrong way? And can I check fields the same way?
>>> 
>>> I suppose I could create an empty variable and just compare the 2?
>>> But is
>>> there an easier way?
>>> 
>>> Next question; checking the existence of a variable? Now I know I
>>> can turn
>>> on Strict Compilation (and I have) but I¹d rather have the
>>> assurance of
>>> checking to see if a variable exist? Is this a non-issue in
>>> Revolution?
>>> 
>>> Thanks
>>> 
>>> -Stephen Cox
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie question - how to check for a varible

2009-05-07 Thread Stephen Cox
I did search for "empty" in the Online Dictionary. But all I got were
property keywords. I also read the docs on put and answer and saw nothing
about empty.

Anyway know now, thanks.

As for checking for existence of variables.. Just a habit I formed over
years writing dbase and c. "Always check the existence of a variable before
you take any action on it". The compilers of today are more sophisticated so
I'll probably wean my way off it.


On 5/8/09 2:40 AM, "Mark Schonewille" 
wrote:

> Hi Stephen,
> 
> 
> Search the docs for "empty". It will show you things like
> 
> put empty into x
> set the cProp to empty
> 
> So, you will also want to read up on "put" and "set".
> 
> There is also a function "variableNames", which will probably be very
> useful to you. Why do you want to check for the existence of a
> variable? I do this very, very rarely and only in really advanced
> projects.
> 
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
> Dutch forum: http://runrev.info/rrforum
> 
> New: Snapper Screen Recorder 2.0.1
> Download at http://snapper.economy-x-talk.com
> 
> On 8 mei 2009, at 08:25, Stephen Cox wrote:
> 
>> Really two questions:
>> 
>> How do I check if a variable is empty? Sort of like;
>> 
>> If !empty(tUsername)
>>// process here
>> Endif
>> 
>> Empty() is a Foxpro function that pops if what you are checking is
>> empty. I
>> can¹t seem to find it¹s equivalent in revolution. Am I approaching
>> this the
>> wrong way? And can I check fields the same way?
>> 
>> I suppose I could create an empty variable and just compare the 2?
>> But is
>> there an easier way?
>> 
>> Next question; checking the existence of a variable? Now I know I
>> can turn
>> on Strict Compilation (and I have) but I¹d rather have the assurance
>> of
>> checking to see if a variable exist? Is this a non-issue in
>> Revolution?
>> 
>> Thanks
>> 
>> -Stephen Cox
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie question - how to check for a varible

2009-05-07 Thread Joe Lewis Wilkins
Stephen, I should have checked. Check "exists" in the dictionary for  
the rev syntax. Not quite as straightforward or easy as with HC.

Sorry,
Joe Wilkins

On May 7, 2009, at 11:35 PM, Joe Lewis Wilkins wrote:


Stephen,

Without even checking, since it's the way it would be done in HC,  
just use:


if tUsername is empty then 

if tUsername exists then ...

You were already there. Didn't you check these out in the messagebox?

Joe Wilkins

On May 7, 2009, at 11:25 PM, Stephen Cox wrote:


Really two questions:

How do I check if a variable is empty? Sort of like;

If !empty(tUsername)
  // process here
Endif

Empty() is a Foxpro function that pops if what you are checking is  
empty. I
can’t seem to find it’s equivalent in revolution. Am I approaching  
this the

wrong way? And can I check fields the same way?

I suppose I could create an empty variable and just compare the 2?  
But is

there an easier way?

Next question; checking the existence of a variable? Now I know I  
can turn
on Strict Compilation (and I have) but I’d rather have the  
assurance of
checking to see if a variable exist? Is this a non-issue in  
Revolution?


Thanks

-Stephen Cox


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


Re: Newbie question - how to check for a varible

2009-05-07 Thread Stephen Cox
Lol. Of course. I knew it would be easy. Thanks.

For the life of me I could not find an example in the docs; the user guild
or online.

The messagebox? I hardly use it. Gets in the way mostly. I've been using it
to look at global variables. I know you can run commands. But if you don't
know the commands, it's no help. Or am I wrong about this?


On 5/8/09 2:35 AM, "Joe Lewis Wilkins"  wrote:

> Stephen,
> 
> Without even checking, since it's the way it would be done in HC, just
> use:
> 
> if tUsername is empty then 
> 
> if tUsername exists then ...
> 
> You were already there. Didn't you check these out in the messagebox?
> 
> Joe Wilkins
> 
> On May 7, 2009, at 11:25 PM, Stephen Cox wrote:
> 
>> Really two questions:
>> 
>> How do I check if a variable is empty? Sort of like;
>> 
>> If !empty(tUsername)
>>// process here
>> Endif
>> 
>> Empty() is a Foxpro function that pops if what you are checking is
>> empty. I
>> can¹t seem to find it¹s equivalent in revolution. Am I approaching
>> this the
>> wrong way? And can I check fields the same way?
>> 
>> I suppose I could create an empty variable and just compare the 2?
>> But is
>> there an easier way?
>> 
>> Next question; checking the existence of a variable? Now I know I
>> can turn
>> on Strict Compilation (and I have) but I¹d rather have the assurance
>> of
>> checking to see if a variable exist? Is this a non-issue in
>> Revolution?
>> 
>> Thanks
>> 
>> -Stephen Cox
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Newbie question - how to check for a varible

2009-05-07 Thread Mark Schonewille

Hi Stephen,


Search the docs for "empty". It will show you things like

put empty into x
set the cProp to empty

So, you will also want to read up on "put" and "set".

There is also a function "variableNames", which will probably be very  
useful to you. Why do you want to check for the existence of a  
variable? I do this very, very rarely and only in really advanced  
projects.



--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

New: Snapper Screen Recorder 2.0.1
Download at http://snapper.economy-x-talk.com

On 8 mei 2009, at 08:25, Stephen Cox wrote:


Really two questions:

How do I check if a variable is empty? Sort of like;

If !empty(tUsername)
   // process here
Endif

Empty() is a Foxpro function that pops if what you are checking is  
empty. I
can’t seem to find it’s equivalent in revolution. Am I approaching  
this the

wrong way? And can I check fields the same way?

I suppose I could create an empty variable and just compare the 2?  
But is

there an easier way?

Next question; checking the existence of a variable? Now I know I  
can turn
on Strict Compilation (and I have) but I’d rather have the assurance  
of
checking to see if a variable exist? Is this a non-issue in  
Revolution?


Thanks

-Stephen Cox


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


Re: Newbie question - how to check for a varible

2009-05-07 Thread Joe Lewis Wilkins

Stephen,

Without even checking, since it's the way it would be done in HC, just  
use:


if tUsername is empty then 

if tUsername exists then ...

You were already there. Didn't you check these out in the messagebox?

Joe Wilkins

On May 7, 2009, at 11:25 PM, Stephen Cox wrote:


Really two questions:

How do I check if a variable is empty? Sort of like;

If !empty(tUsername)
   // process here
Endif

Empty() is a Foxpro function that pops if what you are checking is  
empty. I
can’t seem to find it’s equivalent in revolution. Am I approaching  
this the

wrong way? And can I check fields the same way?

I suppose I could create an empty variable and just compare the 2?  
But is

there an easier way?

Next question; checking the existence of a variable? Now I know I  
can turn
on Strict Compilation (and I have) but I’d rather have the assurance  
of
checking to see if a variable exist? Is this a non-issue in  
Revolution?


Thanks

-Stephen Cox


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


Newbie question - how to check for a varible

2009-05-07 Thread Stephen Cox
Really two questions:

How do I check if a variable is empty? Sort of like;

If !empty(tUsername)
// process here
Endif

Empty() is a Foxpro function that pops if what you are checking is empty. I
can¹t seem to find it¹s equivalent in revolution. Am I approaching this the
wrong way? And can I check fields the same way?

I suppose I could create an empty variable and just compare the 2? But is
there an easier way?

Next question; checking the existence of a variable? Now I know I can turn
on Strict Compilation (and I have) but I¹d rather have the assurance of
checking to see if a variable exist? Is this a non-issue in Revolution?

Thanks

-Stephen Cox




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


Re: Newbie question re path names

2009-01-09 Thread Bob Sneidar
Kill is Quit Without Saving. Not very good unless you have a hung  
process.


I agree the Applescript method is best.

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Jan 8, 2009, at 6:58 PM, Timothy Miller wrote:


Oops! "Kill Process" does make the application quit.

Is this command safe on Mac OS? The documentation is somewhat
ambiguous on this point.

Thanks again.


Tim


On Jan 8, 2009, at 6:40 PM, Timothy Miller wrote:


Thanks everyone! It works now.

Is it okay to use the "Open Process" command instead? (It seems to
work.)

Can I also use a Rev command to quit an application?

I messed around with closeProcess but couldn't get it to work.


with:

answer there is a process "/Applications/Firefox.app"

I get "True"

with:

close process "/Applications/Firefox.app"
answer the result

I get an empty result, but Firefox doesn't quit. What am I doing
wrong?



Thanks in advance,

Tim


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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Newbie question re path names

2009-01-08 Thread Terry Judd
I think you're better off asking it to quit first with an applescript then
if that fails you can always kill it.

I'm pretty sure Ken (sonsothunder.com) has some tips that you might find
useful for this sort of stuff.

Terry...


On 9/1/09 1:58 PM, "Timothy Miller"  wrote:

> Oops! "Kill Process" does make the application quit.
> 
> Is this command safe on Mac OS? The documentation is somewhat
> ambiguous on this point.
> 
> Thanks again.
> 
> 
> Tim
> 
> 
> On Jan 8, 2009, at 6:40 PM, Timothy Miller wrote:
> 
>> Thanks everyone! It works now.
>> 
>> Is it okay to use the "Open Process" command instead? (It seems to
>> work.)
>> 
>> Can I also use a Rev command to quit an application?
>> 
>> I messed around with closeProcess but couldn't get it to work.
>> 
>> 
>> with:
>> 
>> answer there is a process "/Applications/Firefox.app"
>> 
>> I get "True"
>> 
>> with:
>> 
>>  close process "/Applications/Firefox.app"
>>  answer the result
>> 
>> I get an empty result, but Firefox doesn't quit. What am I doing
>> wrong?
>> 
>> 
>> 
>> Thanks in advance,
>> 
>> Tim
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187

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


Re: Newbie question re path names

2009-01-08 Thread Timothy Miller

Oops! "Kill Process" does make the application quit.

Is this command safe on Mac OS? The documentation is somewhat  
ambiguous on this point.


Thanks again.


Tim


On Jan 8, 2009, at 6:40 PM, Timothy Miller wrote:


Thanks everyone! It works now.

Is it okay to use the "Open Process" command instead? (It seems to  
work.)


Can I also use a Rev command to quit an application?

I messed around with closeProcess but couldn't get it to work.


with:

answer there is a process "/Applications/Firefox.app"

I get "True"

with:

 close process "/Applications/Firefox.app"
 answer the result

I get an empty result, but Firefox doesn't quit. What am I doing  
wrong?




Thanks in advance,

Tim


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


Re: Newbie question re path names

2009-01-08 Thread Terry Judd
Hi Tim,

You can use applescript (from within Rev) to do this...

put "tell application ""e&"firefox-bin""e&" to quit" into tScript
do tScript as applescript

HTH,

Terry...


On 9/1/09 1:40 PM, "Timothy Miller"  wrote:

> Thanks everyone! It works now.
> 
> Is it okay to use the "Open Process" command instead? (It seems to
> work.)
> 
> Can I also use a Rev command to quit an application?
> 
> I messed around with closeProcess but couldn't get it to work.
> 
> 
> with:
> 
> answer there is a process "/Applications/Firefox.app"
> 
> I get "True"
> 
> with:
> 
>   close process "/Applications/Firefox.app"
>   answer the result
> 
> I get an empty result, but Firefox doesn't quit. What am I doing wrong?
> 
> 
> 
> Thanks in advance,
> 
> Tim
> 
> 
> On Jan 8, 2009, at 5:37 PM, Jim Ault wrote:
> 
>> Quick tip that should work on all platforms:
>> In the message box type
>>answer file "choose the one you like"; put it
>> 
>> The result will appear as the correct Rev syntax that refers to the
>> file
>> 
>> Do this for folders.
>>answer folder "choose the one you like"; put it
>> 
>> Hope this helps
>> 
>> Jim Ault
>> Las Vegas
>> 
>> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187

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


Re: Newbie question re path names

2009-01-08 Thread Timothy Miller

Thanks everyone! It works now.

Is it okay to use the "Open Process" command instead? (It seems to  
work.)


Can I also use a Rev command to quit an application?

I messed around with closeProcess but couldn't get it to work.


with:

answer there is a process "/Applications/Firefox.app"

I get "True"

with:

 close process "/Applications/Firefox.app"
 answer the result

I get an empty result, but Firefox doesn't quit. What am I doing wrong?



Thanks in advance,

Tim


On Jan 8, 2009, at 5:37 PM, Jim Ault wrote:


Quick tip that should work on all platforms:
In the message box type
   answer file "choose the one you like"; put it

The result will appear as the correct Rev syntax that refers to the  
file


Do this for folders.
   answer folder "choose the one you like"; put it

Hope this helps

Jim Ault
Las Vegas



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


Re: Newbie question re path names

2009-01-08 Thread Jim Ault
Quick tip that should work on all platforms:
In the message box type
   answer file "choose the one you like"; put it

The result will appear as the correct Rev syntax that refers to the file

Do this for folders.
   answer folder "choose the one you like"; put it

Hope this helps

Jim Ault
Las Vegas


On 1/8/09 4:52 PM, "Timothy Miller"  wrote:

> Hi,
> 
> Not so many elementary questions on the list these days. Well, I've
> got an infinite supply. It might not show, but I did attempt to read
> the instructions.
> 
> Hoping to waste less time on the web and email, I've got a new plan.
> I'll launch Firefox and Mail from a small Rev stack, and shame myself
> by tallying the minutes wasted each day.
> 
> Question 1 -- I'm sorry to say I can't figure out the right syntax
> for the path name to the Firefox application, for instance. I thought
> it might be "applications/Firefox" or "applications/Firefox.app" or
> "my hard disk/Applications/Firefox" and so on, but those don't seem
> correct. Please advise.
> 
> Question 2 -- There doesn't seem to be a "quit" command that
> corresponds to the "launch" command, for applications. How do I do
> that? Do I need AppleScript?
> 
> Thanks in advance.
> 
> 
> Tim
> 
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Newbie question re path names

2009-01-08 Thread Bob Sneidar
BTW this is not a revolution issue but an OS one. This is how the OS  
refers to the root of the startup volume. The first slash means "The  
startup drive". For other volumes you would access the mount point  
folder which is Volumes i.e. /Volumes/My Other Drive/Some Folder/...


To access the home folder of the currently logged in user you start  
with a tilde ~ i.e. ~/Documents/Some Folder/...


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Jan 8, 2009, at 4:52 PM, Timothy Miller wrote:


Hi,

Not so many elementary questions on the list these days. Well, I've
got an infinite supply. It might not show, but I did attempt to read
the instructions.

Hoping to waste less time on the web and email, I've got a new plan.
I'll launch Firefox and Mail from a small Rev stack, and shame myself
by tallying the minutes wasted each day.

Question 1 -- I'm sorry to say I can't figure out the right syntax
for the path name to the Firefox application, for instance. I thought
it might be "applications/Firefox" or "applications/Firefox.app" or
"my hard disk/Applications/Firefox" and so on, but those don't seem
correct. Please advise.

Question 2 -- There doesn't seem to be a "quit" command that
corresponds to the "launch" command, for applications. How do I do
that? Do I need AppleScript?

Thanks in advance.


Tim




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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Newbie question re path names

2009-01-08 Thread Bob Sneidar
You need to preface it with a forward slash ie. /applications/some  
folder/...


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Jan 8, 2009, at 4:52 PM, Timothy Miller wrote:


Hi,

Not so many elementary questions on the list these days. Well, I've
got an infinite supply. It might not show, but I did attempt to read
the instructions.

Hoping to waste less time on the web and email, I've got a new plan.
I'll launch Firefox and Mail from a small Rev stack, and shame myself
by tallying the minutes wasted each day.

Question 1 -- I'm sorry to say I can't figure out the right syntax
for the path name to the Firefox application, for instance. I thought
it might be "applications/Firefox" or "applications/Firefox.app" or
"my hard disk/Applications/Firefox" and so on, but those don't seem
correct. Please advise.

Question 2 -- There doesn't seem to be a "quit" command that
corresponds to the "launch" command, for applications. How do I do
that? Do I need AppleScript?

Thanks in advance.


Tim




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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Newbie question re path names

2009-01-08 Thread Timothy Miller

Hi,

Not so many elementary questions on the list these days. Well, I've  
got an infinite supply. It might not show, but I did attempt to read  
the instructions.


Hoping to waste less time on the web and email, I've got a new plan.  
I'll launch Firefox and Mail from a small Rev stack, and shame myself  
by tallying the minutes wasted each day.


Question 1 -- I'm sorry to say I can't figure out the right syntax  
for the path name to the Firefox application, for instance. I thought  
it might be "applications/Firefox" or "applications/Firefox.app" or  
"my hard disk/Applications/Firefox" and so on, but those don't seem  
correct. Please advise.


Question 2 -- There doesn't seem to be a "quit" command that  
corresponds to the "launch" command, for applications. How do I do  
that? Do I need AppleScript?


Thanks in advance.


Tim




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


Re: newbie question

2008-09-15 Thread Jim McNeely

It works! THANKS!

Jim

On Sep 15, 2008, at 9:38 AM, Klaus Major wrote:


Hi J9m,


Hello all,

I appreciated the recent thread where you all welcomed basic  
questions. I am just starting with Revolution, coming from a  
FileMaker background.


I have a table field into which I put the results from a MySQL  
query, triggered by a rawkey event in a search field. It works  
great so far, but I'm just messing around tire-kicking. I also  
have a slider control which I set to the query count, and when you  
select one of the lines in the table field, it shows the details  
of that record and also changes the thumb position of the slider.  
It all works great, I love Revolution a lot.


Here is the question: I want to be able to change the table  
field's selection hilite when you slide the thumb of the slider,  
but I don't see any property for fields like 'hiliteLine'; how do  
you do that?


You are almost there, just add a D to the prop:
...
set the hiliteDLines of fld "Your table field here" to the thumbpos  
of sb "your scrollbar here"

...

:-)


Thanks,

Jim McNeely


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: newbie question

2008-09-15 Thread Klaus Major

Hi J9m,


Hello all,

I appreciated the recent thread where you all welcomed basic  
questions. I am just starting with Revolution, coming from a  
FileMaker background.


I have a table field into which I put the results from a MySQL  
query, triggered by a rawkey event in a search field. It works great  
so far, but I'm just messing around tire-kicking. I also have a  
slider control which I set to the query count, and when you select  
one of the lines in the table field, it shows the details of that  
record and also changes the thumb position of the slider. It all  
works great, I love Revolution a lot.


Here is the question: I want to be able to change the table field's  
selection hilite when you slide the thumb of the slider, but I don't  
see any property for fields like 'hiliteLine'; how do you do that?


You are almost there, just add a D to the prop:
...
set the hiliteDLines of fld "Your table field here" to the thumbpos of  
sb "your scrollbar here"

...

:-)


Thanks,

Jim McNeely


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


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


newbie question

2008-09-15 Thread Jim McNeely

Hello all,

I appreciated the recent thread where you all welcomed basic  
questions. I am just starting with Revolution, coming from a  
FileMaker background.


I have a table field into which I put the results from a MySQL query,  
triggered by a rawkey event in a search field. It works great so far,  
but I'm just messing around tire-kicking. I also have a slider  
control which I set to the query count, and when you select one of  
the lines in the table field, it shows the details of that record and  
also changes the thumb position of the slider. It all works great, I  
love Revolution a lot.


Here is the question: I want to be able to change the table field's  
selection hilite when you slide the thumb of the slider, but I don't  
see any property for fields like 'hiliteLine'; how do you do that?


Thanks,

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


Re: Stupid Newbie Question

2008-02-29 Thread Klaus Major

Hi Joe,


Hi Joe,


Hi Everyone,

Considering I've been using Rev for about two years now, it's almost
embarrassing to ask this question.

I have a field with three lines in it. I want to be able to edit  
any of those


sorry, completely overlooked "...ANY of those..."
In that case I would still use my handler but without checking for a  
special line.


lines individually without changing the others. I can't seem to  
figure out

what the field settings need to be to achieve this.


No settings for this one, sorry.

I would (and do) use a "mousedoubleup" handler that can check the  
clicked line
and then open an "ask Dialog" wehre the user can edit that line and  
write it back

to the field later...

Example, presumes that only line 2 should be edited:

on mousedoubleup
 put the selectedtext of me into tSl
 put the hilitedlines of me into tHl


## Check for editable line:
 ##if tHl <> 2 then
##   exit mousedoubleup
## end if


 ask "Change this line:" with tSl
 if it <> empty then
   put it into line tHl of me
 end if
end mousedoubleup


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


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


Re: Stupid Newbie Question

2008-02-29 Thread Klaus Major

Hi Joe,


Hi Everyone,

Considering I've been using Rev for about two years now, it's almost
embarrassing to ask this question.

I have a field with three lines in it. I want to be able to edit  
any of those
lines individually without changing the others. I can't seem to  
figure out

what the field settings need to be to achieve this.


No settings for this one, sorry.

I would (and do) use a "mousedoubleup" handler that can check the  
clicked line
and then open an "ask Dialog" wehre the user can edit that line and  
write it back

to the field later...

Example, presumes that only line 2 should be edited:

on mousedoubleup
 put the selectedtext of me into tSl
 put the hilitedlines of me into tHl

## Check for editable line:
 if tHl <> 2 then
   exit mousedoubleup
 end if

 ask "Change this line:" with tSl
 if it <> empty then
   put it into line tHl of me
 end if
end mousedoubleup

Famous last words: Not tested, but should work :-)

Thanks in advance. I don't know how I'd manage sometimes without  
the group's

help.

Joe in Orlando, Florida


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


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


Stupid Newbie Question

2008-02-29 Thread LunchnMeets
Hi Everyone,

Considering I've been using Rev for about two years now, it's almost 
embarrassing to ask this question.

I have a field with three lines in it. I want to be able to edit any of those 
lines individually without changing the others. I can't seem to figure out 
what the field settings need to be to achieve this.

Thanks in advance. I don't know how I'd manage sometimes without the group's 
help.

Joe in Orlando, Florida


**
Ideas to please picky eaters. Watch 
video on AOL Living.
  
(http://living.aol.com/video/how-to-please-your-picky-eater/rachel-campos-duffy/2050827?NCID=aolcmp0030002598)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: AltBrowser newbie question...

2007-04-17 Thread Mark Schonewille

Hi,

I had the same problem as the OP of this thread. This is what I did,  
it is fairly simple.


First, I created a stack and put the following script into the card  
script:


on suspendStack
xBrowser_Unfocus
end suspendStack

on openField
xBrowser_Unfocus
end openField

on resizeStack
  put the rect of this cd into myRect
  add 24 to item 2 of myRect
  subtract 14 from item 4 of myRect
  xbrowser_Set "Rect",myRect
end resizeStack

Then I created a field on top of the card and called this field  
"Url". I also added a button next to that field, with the following  
script:


on mouseUp
  xBrowser_Init "user","password"
  xBrowser_Open the windowID of this stack,fld "Url"
  resizeStack   
end mouseUp

You could add one more button with the following script:

on mouseUp
  XBrowser_Close
end mouseUp

Each time when you click the first button, a new browser element will  
be created. There are no checks for availability of browser elements,  
hence the try control structures. Although it is very rudimentary, it  
should be sufficient as a starting point.


Note that I use the xBrowser_Init. The reason is that the browser  
plugin included with Rev 2.8.1-dp-2 doesn't work. I am using an older  
version, which works fine.


(Now off to QaC to post a few bugs...)

Best regards,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 13-apr-2007, om 20:24 heeft Scott Rossi het volgende geschreven:



What I did:

1) Established a rect to display the browser object (I used a  
graphic).


2) Copied the scripts of the demo browser stack into the script of  
my stack,

referencing the above graphic, commenting out handlers I didn't need.

3) Duplicated the custom properties of the demo browser stack in my  
stack.

This is necessary if you use the altBrowser scripts without any
modification.

4) Make sure the altBrowserState of your stack (one of the custom  
properties
mentioned above) is true.  Again, you need to do this if you use  
the demo
scripts word-for-word.  You can modify the scripts so this property  
setting

is unnecessary.

Good luck.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design




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


Re: AltBrowser newbie question...

2007-04-13 Thread Scott Rossi
Recently, Jim Carwardine wrote:

>>> I've just installed AltBrowser and am starting to play with it.  I can't
>>> seem to get the AltBrowser window to display a url.  I have installed the
>>> plug-in and also the stack in my application.
>>> ... 
>>> When I look at the docs through the demo, it launches the window *and*
>>> connects with the rev url no problem.

>> It might help to duplicate the demo stack and use that as a starting point
>> for your own stack.  If you're using the code in the demo stack, you'll
>> notice that it references some stack-based properties to determine whether
>> or not to display the browser object -- this is an issue that tripped me up
>> during development.

> I already have a stack I want to put AltBrowser into.  Is
> there is a section of the stack script that can be pasted into the substack
> it created for me... I can't seem to find anything I can use that way.  The
> "Go" button on the created substack references a handler called...

What I did:

1) Established a rect to display the browser object (I used a graphic).

2) Copied the scripts of the demo browser stack into the script of my stack,
referencing the above graphic, commenting out handlers I didn't need.

3) Duplicated the custom properties of the demo browser stack in my stack.
This is necessary if you use the altBrowser scripts without any
modification.

4) Make sure the altBrowserState of your stack (one of the custom properties
mentioned above) is true.  Again, you need to do this if you use the demo
scripts word-for-word.  You can modify the scripts so this property setting
is unnecessary.

Good luck.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: AltBrowser newbie question...

2007-04-13 Thread Jim Carwardine
Thanks, Scott... I already have a stack I want to put AltBrowser into.  Is
there is a section of the stack script that can be pasted into the substack
it created for me... I can't seem to find anything I can use that way.  The
"Go" button on the created substack references a handler called...

abLoadURL fld "browserAddress"

In the card script of the new stack.  When I trace it, it executes the
handler, nothing shows on the altBrowser window, then it goes off and
executes some code I created for mouseEnter and mouseWithin messages, which
I should test to see if I'm in the right substack which I'm not, however, I
don't think what I'm doing should have preempted what AltBrowser wants to
do... Jim


on 4/12/07 9:53 PM, Scott Rossi wrote:

> Recently, Jim Carwardine wrote:
> 
>> I've just installed AltBrowser and am starting to play with it.  I can't
>> seem to get the AltBrowser window to display a url.  I have installed the
>> plug-in and also the stack in my application.
>> ... 
>> When I look at the docs through the demo, it launches the window *and*
>> connects with the rev url no problem.
> 
> It might help to duplicate the demo stack and use that as a starting point
> for your own stack.  If you're using the code in the demo stack, you'll
> notice that it references some stack-based properties to determine whether
> or not to display the browser object -- this is an issue that tripped me up
> during development.
> 
> AltBrowser is an external that brings a smile to your face when it works.
> It's a little temperamental (and you can't use it to display PDFs reliably
> on Mac OSX), but it is quite cool.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
> 
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 

www.TalentSeeker.ca   www.HiringSmart.ca/ns   www.KeepingTheBest.ca/ns


Own Your Future Consulting,
23 Shoal Cove Road, Seabright, Nova Scotia, Canada.  B3Z 3A9
Phone: 902-823-2339. Fax: 902-823-2139





___
use-revolution mailing list
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: AltBrowser newbie question...

2007-04-12 Thread Scott Rossi
Recently, Jim Carwardine wrote:

> I've just installed AltBrowser and am starting to play with it.  I can't
> seem to get the AltBrowser window to display a url.  I have installed the
> plug-in and also the stack in my application.
> ... 
> When I look at the docs through the demo, it launches the window *and*
> connects with the rev url no problem.

It might help to duplicate the demo stack and use that as a starting point
for your own stack.  If you're using the code in the demo stack, you'll
notice that it references some stack-based properties to determine whether
or not to display the browser object -- this is an issue that tripped me up
during development.

AltBrowser is an external that brings a smile to your face when it works.
It's a little temperamental (and you can't use it to display PDFs reliably
on Mac OSX), but it is quite cool.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


AltBrowser newbie question...

2007-04-12 Thread Jim Carwardine
I've just installed AltBrowser and am starting to play with it.  I can't
seem to get the AltBrowser window to display a url.  I have installed the
plug-in and also the stack in my application.  I used the Launch Browser
button in the demo stack to create the launch button in my stack but when I
click on that button, it launches a window but doesn't connect with the url.

When I look at the docs through the demo, it launches the window *and*
connects with the rev url no problem.  Aside from the cosmetics, the button
that launches the docs url does not contain the same scripting as the button
created by the Launch Browser button.  I know this is simple but I don't see
where to go.  There is no troubleshooting section in the docs.

Can somebody set me straight?  Jim
-- 

www.TalentSeeker.ca   www.HiringSmart.ca/ns   www.KeepingTheBest.ca/ns


Own Your Future Consulting,
23 Shoal Cove Road, Seabright, Nova Scotia, Canada.  B3Z 3A9
Phone: 902-823-2339. Fax: 902-823-2139





___
use-revolution mailing list
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Yet another Newbie Question

2007-04-04 Thread Simon HARPER

Thanks for this.


Cheers
Si.


Simon Harper
2.44 Kilburn Building
University of Manchester (UK)

Pri: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]


On 3 Apr 2007, at 20:17, Stephen Barncard wrote:

a data stack using custom properties and property sets is one of  
the best ways to store arrays in Rev (and data in general).


You can also put data inside the data using text lists inside a  
custom property. This of course puts stricter limits on what goes  
into certain places.


key1  data  data2  data3  
key2  data  data2 data3
key3  data  data2  data3

an entire array of datasets can be punched into or retrieved from a  
stack in one line of code. Loop through the arrays in a script to  
copy over, or use the clone command.


lots of ways to accomplish the tasks.

In MacOS X the data could live a stack inside a package, just  
outside the app or a stack in a special folder that is designated  
in the OS. (see specialfolderpath in the docs)


Text files work for certain data situations like listings that need  
to be occasionally manipulated by the user, but have no structure,  
XML is searchable and structured, but bulky - large files. They  
both need to be loaded in from disk.


With custom properties, if you know generally where some of your  
data is, searching can be very fast.  Also access time is very  
fast, almost as fast as variables, because it's all held in ram.





Hi there,
so I've a couple of questions (which may be silly)

1) If I create version 1 of an application which saves data as a  
stack - then create version 2 which adds functionality (but  
probably doesn't change the data format) how do I get the stack  
data from version 1 into the newly installed version 2?


2) It seems that a good idea is to create a Library and Data  
Manager stack, so now I'm wondering is it 'better' to push all  
data to disk, as say xml or text, then reload it all into an array  
in the Data Manager and then step through the array and perform  
all other actions on the array - if you like - a kind of  
abstraction? which leads me to the question - is there the concept  
of a record structure as in c/c++ or is it best to use a 2  
dimensional array?


Sorry once again if this is all obvious.

Cheers
Si.


Simon Harper


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Yet another Newbie Question

2007-04-04 Thread Dave

Hi,

If you intend to build standalone apps you should be aware that you  
CANNOT write back data to the Stack that is the "main" application.  
There are a number of ways around this which also address your  
questions below. The method I use is to have one stack that is the  
main application "Splash" screen. This stack doesn't have to actually  
display anything and is really just a place holder to load the RunRev  
Engine. This stack then calls up .rev files (that are buried in the  
App Bundle on MacOS X). I use the following folder structure:


SplashStack.app   (Bundle)

SplashStack.app/Contents/MacOS/MakeTestMovie  (Real  
Application or Standalone)
SplashStack.app/Contents/MacOS/RunRime  
(RunTime Folder Created by RunRev when you build a standalone)
SplashStack.app/Contents/MacOS/RunRime/Database/ (This folder  
is used to contain Data files used by your app)
SplashStack.app/Contents/MacOS/RunRime/Externals/ (This  
folder is used to contain External files used by your app)
SplashStack.app/Contents/MacOS/RunRime/Images/(This  
folder is used to contain Images files used by your app)
SplashStack.app/Contents/MacOS/RunRime/Stacks   (This  
folder is used to contain the real Stack Files files for your app)


You can set all this up in the Standalone settings panel which is run  
run the Splash Screen Stack. Depending on what you are doing you may  
also need some code in the Splash Screen Stack that runs when a  
Standalone is saved and copies files to the right places. I need to  
do this with my apps.


Using this approach if you want to use a stack to hold your data,  
then you just use a separate stack that just holds the data. Then  
versions 1, 2, 3 etc. just access this stack so you have no need to  
worry about transferring data between versions. You can equally well  
use separate data files or a mixture of the two techniques.


The other advantage of this approach is that you can also re-use  
stacks in other applications and it makes adding or updating an  
application as simple as replacing just the file(s) in question.


My ISM module and the framework basically work like this.

Hope this helps
Dave

On 3 Apr 2007, at 17:20, Simon HARPER wrote:


Hi there,
so I've a couple of questions (which may be silly)

1) If I create version 1 of an application which saves data as a  
stack - then create version 2 which adds functionality (but  
probably doesn't change the data format) how do I get the stack  
data from version 1 into the newly installed version 2?


2) It seems that a good idea is to create a Library and Data  
Manager stack, so now I'm wondering is it 'better' to push all data  
to disk, as say xml or text, then reload it all into an array in  
the Data Manager and then step through the array and perform all  
other actions on the array - if you like - a kind of abstraction?  
which leads me to the question - is there the concept of a record  
structure as in c/c++ or is it best to use a 2 dimensional array?


Sorry once again if this is all obvious.

Cheers
Si.


Simon Harper
2.44 Kilburn Building
University of Manchester (UK)

Pri: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]


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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Yet another Newbie Question

2007-04-03 Thread Richard Gaskin

Stephen Barncard wrote:
a data stack using custom properties and property sets is one of the 
best ways to store arrays in Rev (and data in general).


You can also put data inside the data using text lists inside a 
custom property. This of course puts stricter limits on what goes 
into certain places.


key1  data  data2  data3  
key2  data  data2 data3
key3  data  data2  data3

an entire array of datasets can be punched into or retrieved from a 
stack in one line of code. Loop through the arrays in a script to 
copy over, or use the clone command.


lots of ways to accomplish the tasks.


Some tips along those lines for using stacks for data storage:



--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Yet another Newbie Question

2007-04-03 Thread Stephen Barncard
a data stack using custom properties and property sets is one of the 
best ways to store arrays in Rev (and data in general).


You can also put data inside the data using text lists inside a 
custom property. This of course puts stricter limits on what goes 
into certain places.


key1  data  data2  data3  
key2  data  data2 data3
key3  data  data2  data3

an entire array of datasets can be punched into or retrieved from a 
stack in one line of code. Loop through the arrays in a script to 
copy over, or use the clone command.


lots of ways to accomplish the tasks.

In MacOS X the data could live a stack inside a package, just outside 
the app or a stack in a special folder that is designated in the OS. 
(see specialfolderpath in the docs)


Text files work for certain data situations like listings that need 
to be occasionally manipulated by the user, but have no structure, 
XML is searchable and structured, but bulky - large files. They both 
need to be loaded in from disk.


With custom properties, if you know generally where some of your data 
is, searching can be very fast.  Also access time is very fast, 
almost as fast as variables, because it's all held in ram.





Hi there,
so I've a couple of questions (which may be silly)

1) If I create version 1 of an application which saves data as a 
stack - then create version 2 which adds functionality (but probably 
doesn't change the data format) how do I get the stack data from 
version 1 into the newly installed version 2?


2) It seems that a good idea is to create a Library and Data Manager 
stack, so now I'm wondering is it 'better' to push all data to disk, 
as say xml or text, then reload it all into an array in the Data 
Manager and then step through the array and perform all other 
actions on the array - if you like - a kind of abstraction? which 
leads me to the question - is there the concept of a record 
structure as in c/c++ or is it best to use a 2 dimensional array?


Sorry once again if this is all obvious.

Cheers
Si.


Simon Harper


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



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


Yet another Newbie Question

2007-04-03 Thread Simon HARPER

Hi there,
so I've a couple of questions (which may be silly)

1) If I create version 1 of an application which saves data as a  
stack - then create version 2 which adds functionality (but probably  
doesn't change the data format) how do I get the stack data from  
version 1 into the newly installed version 2?


2) It seems that a good idea is to create a Library and Data Manager  
stack, so now I'm wondering is it 'better' to push all data to disk,  
as say xml or text, then reload it all into an array in the Data  
Manager and then step through the array and perform all other actions  
on the array - if you like - a kind of abstraction? which leads me to  
the question - is there the concept of a record structure as in c/c++  
or is it best to use a 2 dimensional array?


Sorry once again if this is all obvious.

Cheers
Si.


Simon Harper
2.44 Kilburn Building
University of Manchester (UK)

Pri: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]


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


  1   2   3   >