Hi all,
REALbasic 2006r4 Commercial Pro
Mac OS X 10.4.6
In a Boolean If .../... Else .../... End If, I have added some variable Dim and
a loop who use them in the If part (True).
Then, I used the same code (copy/paste) in the Else part (False). (*)
All was OK 'till I realize that I have Dim lines inside (instead of at the top
as I usually set) my code and I Cut / Paste it where I want to place it.
Once that was done, I realized my other mistake:
I had two times the same Dim line, the first in the If part, and the second in
the Else part.
You may say, it is a feature; but that feature let me place the same declaration
at two times in the same piece of code (a Menu Handler).
BTW: If you place a Dim line (or two or more) in the If block _AND_ that very
same Dim line exists in the beginning of the code _OR_ outside of the If block,
REALbasic flag the error and displays the first line as an error:
"Error: This name is already in use."
What's your feeling on that ?
Nice Feature or Bug ?
Emile
PS: in my case, I had the chance to see what I call "my mistake" since the
application ran fine.
(*) This is why Copy / Paste _can be_ hell...
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>