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 step...@networkxfla.com wrote: Lol. Of course. I knew it would be easy. Thanks. For the life of me I could

Re: Newbie question - how to check for a varible

2009-05-09 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

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 martinblack...@gmail.com wrote: There is a gotcha to be aware of here. Checking if a previously unused

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... g -- -Mark Wieder

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... g Bah. Don't

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

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 jac...@hyperactivesw.com wrote: Stephen Cox wrote: Wait. I don't get this. You saying that checking if an unused variable is empty

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

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

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

Re: Newbie question - how to check for a varible

2009-05-08 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

Re: Newbie question - how to check for a varible

2009-05-08 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

Re: Newbie question - how to check for a varible

2009-05-08 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

Re: Newbie question - how to check for a varible

2009-05-08 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:

Re: Newbie question - how to check for a varible

2009-05-08 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

Re: Newbie question - how to check for a varible

2009-05-08 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 pepe...@cox.net wrote: Stephen, I should have checked. Check exists in the dictionary for the rev syntax. Not

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

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