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
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
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
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
In the group script of your data grid, just do your sorting in the
sortDataGridColumn message.. See the following link for more
information..
http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/
datagrid/lessons/3780-How-Do-I-Customize-or-Disable-Column-Sorting-
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:
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
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 pepe...@cox.net wrote:
Stephen, I should have checked. Check exists in the dictionary for
the rev syntax. Not
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
I can load an https URL fine.
I can load an http URL protected using 'basic' authentification, using
either the http://user:passw...@www.somewhere.com/; format, or by using the
HTTPHeaders property to explicitly add an Authorization: Basic xxx header.
But I can't load an https URL that's
Don¹t hate me for asking another nub question. ;) I am reading the docs. But
this language is so different then what I am used to it¹s hard to phrase
searches correctly.
Ok, so how do I clear the contents of a field? Namely a text Field. I wanna
offer a clear button.
I¹ve been trying various
put empty into fld x of stack b
-
Stephen Barncard
San Francisco
http://barncard.com
2009/5/8 Stephen Cox step...@networkxfla.com
Don¹t hate me for asking another nub question. ;) I am reading the docs.
But
this language is so different then what I am used to it¹s
If you only have 1 stack do you have to include the stack ID?
On 5/8/09 5:48 AM, stephen barncard stephenrevoluti...@barncard.com
wrote:
put empty into fld x of stack b
-
Stephen Barncard
San Francisco
http://barncard.com
2009/5/8 Stephen Cox
Hi Stephen,
if the field is on your current card then you only need to
put empty into field yourfieldname
You only need to add more specific details if you're referring to some
other card and/or some other stack
put empty into field yourfieldname of card thatcard of stack
theotherstack
Heh.
You know I tried that. But didn't use quotes. So I assume when referring to
objects on cards you have to use quotes?
On 5/8/09 5:54 AM, Phil Jimmieson p...@liverpool.ac.uk wrote:
put empty into field yourfieldname
___
use-revolution mailing
Ah, another potential can of worms!
Rev normally allows you to use unquoted literal names, except where
they're reserved words in the language, or have weird characters in
them that would be difficult to parse (like spaces etc). To err on the
side of caution I usually always quote my field
Thanks all in advance - as always.
My stack writes a text file with the names of avi files that is saved as a .wpl
file. It is actually pretty cool.
But then I want to start Windows Media Player from the stack and have it use
the .wpl file.
My question - on Windows 2000 I am able to use
A library with a few encryption/decryption and hashing functions.
There are also a slew of helper functions for signed bit math (Rev's
internal bit math can only handled unsigned)
- cipherSaber1
- cipherSaber2
- sha1 (i released this a long time ago and i believe Mark Smith
also released
OK, loaded Puppy 4.2, with the copy to memory option and using Xorg not VESA.
Ran the IDE 3.5, and it seemed fine. Fired up a few stacks and they were
fine, positively snappy.
Ran Stackrunner, and using that, started up Sarah's Barcode key tester.
Also Ken's XML editor. Also another xml
Hi Jack,
Shell is just like using the command line. So anything that works, if you go
to Start and then run CMD and type something into the command line box will
also work in shell. Command line parameters can usually be Googled. Here is
the first listing I found for *windows media player command
Basic Auth should still work with https.
I think the problem might be to do with the verification of the SSL
certificate. Try running this before you make your https URL call:
libUrlSetSSLVerification false
The only thing that gives me pause in suggesting this as the cause, is
that I would
Now that's what I'm talking about! Wow!
Thank you so much!
Go Rev Groups and Jim - and what time is it in Hawaii?!
Jim Bufalini j...@visitrieve.com 5/8/2009 7:13 AM
Hi Jack,
Shell is just like using the command line. So anything that works, if you go
to Start and then run CMD and type
Don't forget only Rev Enterprise supports https.
Basic Auth should still work with https.
I think the problem might be to do with the verification of the
SSL
certificate. Try running this before you make your https URL
call:
libUrlSetSSLVerification false
The only thing that gives me
Some times after a crash, Rev will lose it's links between controls and
behaviors. It can take a long time to track this down as
put the behavior of grp 1
returns as expected. It is just that none of the behavior scripts get
called. Restarting does not help. It's happened 3 times for me, so if
Thanks Sean. The ciphersabre website made interesting reading.
Bernard
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
On May 7, 2009, at 2:26 PM, Shao Sean wrote:
I included this type of code in the group script of the data grid
object (group Schema in your case)
on mouseUp
local theLine
local theDataA
put the dgHilitedLines of group Schema into theLine
put the dgDataOfLine[theLine] of group Schema
Hiya,
They are in /var/log not sure if this type of thing might show up in /
var/log/messages
more -f /var/log/messages
Are you double-clicking or starting it from the Terminal? The
Terminal might throw up what the error is.
In some instances I've spotted that the executable bit is
Terry, Jim:
Putting the loadexternals script in one of my main stacks did the trick.
Thanks.
Richard
Terry Judd wrote:
On 8/05/09 11:24 AM, Richard Miller w...@together.net wrote:
Thanks, Terry. Two questions:
1) Have you tried using this in a stack that is opened by a standalone,
Hi Sean.
Brilliant! I have been wondering how I was going to implement an SQL
based app which accessed a remote database without passing cleartext
passwords to the server. I haven't figured out in Rev how to encrypt/
decrypt the password to the database so I can store it locally in a
Peter-
Friday, May 8, 2009, 3:53:32 AM, you wrote:
Ran the IDE 3.5, and it seemed fine. Fired up a few stacks and they were
fine, positively snappy.
Try loading a script of more than a few hundred lines into the script
editor. Then try using the scrollbar to move around in the script.
That's
Thanks to all for the advice about Mac Users/home.
The short version was successful:
/Users/~/Library/Fonts
I now need to delete files from Windows Users/home.
Is there an equivalent short version path for Windows or is
'specialFolderPath' used to get this?
If so, how may I use it?
On VISTA
I'm just curious, but for those of you who have an Enterprise license,
how do you develop your stacks/standalones for multiple platforms?
Do you keep each platform separate and write the same stack for each
platform itself? Or do you have 1 stack file and use Property Profiles
and platform()
Derek Bump wrote:
I'm just curious, but for those of you who have an Enterprise license,
how do you develop your stacks/standalones for multiple platforms?
Do you keep each platform separate and write the same stack for each
platform itself? Or do you have 1 stack file and use Property
Richard Gaskin wrote:
Derek Bump wrote:
I'm just curious, but for those of you who have an Enterprise license,
how do you develop your stacks/standalones for multiple platforms?
Do you keep each platform separate and write the same stack for each
platform itself? Or do you have 1 stack file
Thanks to all for the advice about Mac Users/home.
The short version was successful:
/Users/~/Library/Fonts
I now need to delete files from Windows Users/home.
Is there an equivalent short version path for Windows or is
'specialFolderPath' used to get this?
If so, how may I use it?
On
Mark, don't know if this qualifies, but I did the following in Debian Lenny
AMD64 running Gnome - reasonably up to date.
Downloaded SVGL from revonline. I thought it would be nice to have a stack
we can all play with. The stack script appears to have over 1,000 lines. I
scrolled and it moves
Derek Bump - Dreamscape Software wrote:
I'm just curious, but for those of you who have an Enterprise license,
how do you develop your stacks/standalones for multiple platforms?
Do you keep each platform separate and write the same stack for each
platform itself? Or do you have 1 stack file
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
Stephen Cox wrote:
Don¹t hate me for asking another nub question. ;)
I embrace you for it, please don't stop. This list gets way too ethereal
sometimes, I love the new people. Go for it. Ask everything.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software
I think Mark may be referring to his experiences with 3.0.
http://quality.runrev.com/qacenter/show_bug.cgi?id=7162
Peter didn't seem to have problems with the editor in that bug report,
but the rest of us did.
Maybe that bug is one of the many bugs that Kevin refers to as having
been fixed.
Stephen Cox wrote:
Heh.
You know I tried that. But didn't use quotes. So I assume when referring to
objects on cards you have to use quotes?
Literals are always quoted, so this:
field myField
means a field whose name is the literal string myField. If the quotes
are omitted, the engine
I do roughly the same as the other posters - with the exception that for
certain projects where there is quite a bit of platform specific code I
branch these not within the handler, but out to platform specific handlers
that are then kept in platform specific libraries.
That way the switching
Recently, J. Landman Gay wrote:
if literal
names are not quoted, the engine takes twice as long to execute the
statement because of the additional lookup.
Jacque, is this really true? I've developed a construction/coding style
over the years of naming card objects with an underscore (
hi all!!!
I've a little math issue!!!
Try to put this in ur message box:
put 283.67-150.00-133.670
It's surely false ('cause 283.67-150.00-133.67 it' equal to 0)
but Revolution says me it's TRUE!
Can u confirm this?
What's the matter? Why this strange behavior?
TY. bye-
None of my scripts are very long, that might have been why the problems
didn't happen. But I did have a rea editingl slowdown problem even so in
2.8.1. It was not to do with scrolling, but just with typing. Sometimes
for no discernable reason, when you typed, it would take almost a second for
Scott Rossi wrote:
Recently, J. Landman Gay wrote:
if literal
names are not quoted, the engine takes twice as long to execute the
statement because of the additional lookup.
Jacque, is this really true?
I confess I made up the twice as long part, I don't really have any
hard numbers on
On May 8, 2009, at 3:00 PM, Giovanni Cannizzaro wrote:
It's surely false ('cause 283.67-150.00-133.67 it' equal to 0)
but Revolution says me it's TRUE!
Can u confirm this?
What's the matter? Why this strange behavior?
You might think that it equals zero, but it doesn't. Try this test:
set
Recently, J. Landman Gay wrote:
On a tangent, another thing that takes longer is the omission of the
when refering to properties; again, just because the engine has to do a
second level of interpretation. You see a lot of this:
set cursor to none
set name of field 1 to whatever
Not
Scott Rossi wrote:
Recently, J. Landman Gay wrote:
On a tangent, another thing that takes longer is the omission of the
when refering to properties; again, just because the engine has to do a
second level of interpretation. You see a lot of this:
set cursor to none
set name of field 1 to
And you just answered another question I was about to scan the Dictionary
for. Thanks.
-Stephen Cox
On 5/8/09 3:25 PM, J. Landman Gay jac...@hyperactivesw.com wrote:
set cursor to none
___
use-revolution mailing list
use-revolution@lists.runrev.com
Stephen Cox wrote:
And you just answered another question I was about to scan the Dictionary
for. Thanks.
-Stephen Cox
On 5/8/09 3:25 PM, J. Landman Gay jac...@hyperactivesw.com wrote:
set cursor to none
Yeah, well, since you're new, *you* have to write set the cursor to
none. The rest
Well thank you Richard, Phil, Jacqueline and David for taking the time
to give your opinion. Your answers were excellent and really helped me
understand how everyone else is using Revolution on multiple platforms.
Some of you did touch on the next question I had. Do you folks prefer
to
Hey Jacque,
Has no one ever put together an FAQ for Rev newbies? I realize that
could be a pretty horrendous effort, but should be useful and doable.
Joe Wilkins
On May 8, 2009, at 12:44 PM, J. Landman Gay wrote:
Yeah, well, since you're new, *you* have to write set the cursor to
none.
On 8 May 2009, at 20:13, J. Landman Gay wrote:
Scott Rossi wrote:
Recently, J. Landman Gay wrote:
if literal names are not quoted, the engine takes twice as long to
execute the
statement because of the additional lookup.
Jacque, is this really true?
I confess I made up the twice as long
OK That is scary. 32 bit or no that should not be happening.
Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM
On May 8, 2009, at 12:18 PM, Colin Holgate wrote:
On May 8, 2009, at 3:00 PM, Giovanni Cannizzaro wrote:
It's surely false ('cause 283.67-150.00-133.67 it' equal to 0)
but
The biggest problem I am having is figuring out what to search for. The
language is so unique. So take my question about emptying a field. Be easy
in an OOP language: empty(Text_field.text) - or something to that effect.
So I would search on empty and get tons of info on the function and
various
Jacque-
Friday, May 8, 2009, 12:13:43 PM, you wrote:
I confess I made up the twice as long part, I don't really have any
hard numbers on the increase. But as I understand it, it takes longer.
Though with Rev being as fast as it is, the delay is probably not very
noticeable most of the time.
set the numberFormat to 0.##
put 283.67-150.00-133.67
returns 0
___
set the numberFormat to 0.##
put 283.67-150.00-133.670
returns true
put 0 0
returns false
On May 8, 2009, at 12:18 PM, Colin Holgate wrote:
On May 8, 2009, at 3:00 PM, Giovanni Cannizzaro wrote:
It's
Colin Holgate wrote:
On May 8, 2009, at 3:00 PM, Giovanni Cannizzaro wrote:
It's surely false ('cause 283.67-150.00-133.67 it' equal to 0)
but Revolution says me it's TRUE!
Can u confirm this?
What's the matter? Why this strange behavior?
You might think that it equals zero, but it doesn't.
On May 8, 2009, at 2:08 PM, Stephen Cox wrote:
The biggest problem I am having is figuring out what to search for.
The
language is so unique. So take my question about emptying a field.
Be easy
in an OOP language: empty(Text_field.text) - or something to that
effect.
So I would search on
On May 8, 2009, at 4:15 PM, Mark Swindell wrote:
set the numberFormat to 0.##
put 283.67-150.00-133.67
returns 0
numberFormat only affects how the number is displayed, it doesn't
affect the value of the number behind the scenes.
___
Stephen,
The majority of us who use Rev have a background in HyperCard; going
way back. There are an abundance of inexpensive, used books on that
topic. Since much of the basic rev language is derived from HC,
reading such a book would be an easy method of cluing you in to Rev's
I didn't know that. Thanks.
On May 8, 2009, at 1:30 PM, Colin Holgate wrote:
On May 8, 2009, at 4:15 PM, Mark Swindell wrote:
set the numberFormat to 0.##
put 283.67-150.00-133.67
returns 0
numberFormat only affects how the number is displayed, it doesn't
affect the value of the number
Do machines serve human or do humans serve machines?
According to my wife . . . :)
Richard Gaskin wrote:
Colin Holgate wrote:
On May 8, 2009, at 3:00 PM, Giovanni Cannizzaro wrote:
It's surely false ('cause 283.67-150.00-133.67 it' equal to 0)
but Revolution says me it's TRUE!
Can u
Then the question becomes, should the IDE be doing math on the real
number or the displayed number? I vote for the displayed number
because that means I can have some kind of control over the outcome.
Clearly if some calculation that comes up with a number cannot be
compared to a literal
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.
Bookmarked. In fact, let me spend some time going over it now. Might have to
waste less of your time on this list. Thanks.
-Stephen Cox
On 5/8/09 4:30 PM, Devin Asay devin_a...@byu.edu wrote:
Welcome, Stephen.
shameless plug
I teach Revolution classes for complete novices, and I have my
Stephen Cox wrote:
Be easy in an OOP language
that begs the question:
Have you ever tried saying Please can I have a glass of beer? in
Bulgarian?
I find it easy, because I speak the language.
However, ask me to clear a field in an OOP language and I be quite
unable to do it. :)
If it helps your current issue, using numberFormat as previously
mentioned and round will give you the false you're expecting
set the numberFormat to 0.##
put round(283.67-150.00-133.67)0
However, I've wondered about this myself at what point does the
error show itself? because
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
By the way, I got the printed user guide. Now this guide is one of the
best tech books I've seen. Thank you Revolution for using a font I can
actually read without using a magnifier.
-Stephen Cox
On 5/8/09 5:00 PM, Richmond Mathewson richmondmathew...@gmail.com wrote:
Coupled with
the PDF
Recently, Bob Sneidar wrote:
Then the question becomes, should the IDE be doing math on the real
number or the displayed number? I vote for the displayed number
because that means I can have some kind of control over the outcome.
Clearly if some calculation that comes up with a number cannot
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
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,
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
We are just starting to play around with building stacks for the Mac. We
have concentrated exclusively on Windows in the past since that is where
the majority of our user base is. However, I have had many requests for
a Mac version of the volunteer scheduling software we produce.
I can't
Stephen Cox wrote:
So I search the Dictionary on empty, got nothing;
It's in there, in its own entry. You do have to make sure that the all
category is chosen in the left side column though, otherwise the
dictionary will filter results to include only those in the selected
category.
--
First of all, thank u for ur reply!
I've senn my question it's flaming, right now!!!
But my last and most important questions are:
in what measure I can trust in Revolution's logical
valutation? Why Revolution replies in this way to
a so simple question? In what condition I've to
expect these
Yes, but my point was if someone was creating an Accounting
application, he would have to know to wrap all of his equations in
value(), otherwise he could not do any logical comparisons on equated
values. While your approach works, I think that the better approach is
for this issue to be
Dave Cragg wrote:
On 8 May 2009, at 20:13, J. Landman Gay wrote:
Scott Rossi wrote:
Recently, J. Landman Gay wrote:
if literal names are not quoted, the engine takes twice as long to
execute the
statement because of the additional lookup.
Jacque, is this really true?
I confess I made up
On May 8, 2009, at 3:31 PM, David Beck wrote:
My only question is where to store the preferences that we are storing
in the Windows Registry. We do have a mechanism to store preferences,
but there are certain preferences that are system wide, and should not
change based on the user of the
Joe Lewis Wilkins wrote:
Hey Jacque,
Has no one ever put together an FAQ for Rev newbies? I realize that
could be a pretty horrendous effort, but should be useful and doable.
In addition to Devin's excellent tutorials, there are also the scripting
conference stacks:
Jacque, So, why can't we have a very conspicuously placed something
that does just what you've done here; lists links to all these great
resources and LABEL them as being for Newbies. Like in the very
first paragraph of the Users' Guide, or on a button that appears
prominently on the
On Sat, May 9, 2009 at 6:08 AM, Stephen Cox step...@networkxfla.com wrote:
The biggest problem I am having is figuring out what to search for. The
language is so unique. So take my question about emptying a field. Be easy
in an OOP language: empty(Text_field.text) - or something to that effect.
Good idea! We could call it NoobNuggets.com!
Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM
On May 8, 2009, at 3:13 PM, Joe Lewis Wilkins wrote:
Jacque, So, why can't we have a very conspicuously placed something
that does just what you've done here; lists links to all these great
Hello David,
I ran into the same problem with Preferences and the Registry when I
started porting my software to Mac. Since I fully intended to
eventually port my software to Linux as well, I figured it would be a
good idea to move away from using the Registry and any system-specific
mechanisms.
Thanks Phil and Bjoernke!
That's what I needed...send command. Seems so obvious when you see
someone else explain it :-)
Now, that I understand send, here's my dilemma. What I'm trying to
create is a little app that allows a teacher in the classroom to push
out a web site they have
Actually, I would like to see someone bend over backwards and THEN
look down their noses. Now THAT would be entertainment!
Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM
On May 8, 2009, at 2:00 PM, Richmond Mathewson wrote:
Actually, Joe Lewis Wilkins' advice is very good indeed.
Joe-
Friday, May 8, 2009, 3:13:13 PM, you wrote:
Jacque, So, why can't we have a very conspicuously placed something
that does just what you've done here; lists links to all these great
resources and LABEL them as being for Newbies. Like in the very
first paragraph of the Users' Guide, or on
I have a few such links on my mostly neglected blog:
http://revined.blogspot.com
Hope I didn't miss anybody! If I did, let me know!
Judy
On Fri, 8 May 2009, Joe Lewis Wilkins wrote:
Jacque, So, why can't we have a very conspicuously placed something that
does just what you've done here;
Oh, but mine's for normal people ;-P Not programmers.
Judy
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
Mark:
Or even that there have been such conferences and may be more in the
future!
Joe Wilkins
On May 8, 2009, at 5:38 PM, Mark Wieder wrote:
...and *WHY* isn't there a link on the runrev site to the scripting
conferences? WHY do you have to know where they are in order to get to
them
Joe Lewis Wilkins wrote:
Jacque, So, why can't we have a very conspicuously placed something
that does just what you've done here; lists links to all these great
resources and LABEL them as being for Newbies.
Yeah, RR needs to do that. In the meantime, I'd be happy to compile a
list and post
93 matches
Mail list logo