I can add but I can't subtract!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
I can add but I can't subtract!
I can
add 1 to field lblXXX
but how do I subtract 1?
Tried adding (-1) and got a raspberry from Rev.
Can't find anything like
field lblXXX = field lblXXX -1
or
field lblXXX -=1
add 1 to field lblXXX
but how do I subtract 1?
Tried adding (-1) and got a raspberry from Rev.
Can't find anything like
field lblXXX = field lblXXX -1
or
field lblXXX -=1
Life is just a bowl of cherries.
Mathematical Moron
I think I failed every mathematics exam I
ever took so you shouldn't be surprised
that I didn't look for "subtract".
Not the usual way in programming.
As I said before I look for something familiar
like += and -+.
And on top of all that it's 8am in Melbourne
and I haven't gone to bed yet.
ever took so you shouldn't be surprised
that I didn't look for "subtract".
Not the usual way in programming.
As I said before I look for something familiar
like += and -+.
And on top of all that it's 8am in Melbourne
and I haven't gone to bed yet.
Last edited by bjb007 on Tue Feb 19, 2008 10:03 pm, edited 1 time in total.
Life is just a bowl of cherries.
The hardest part about learning Rev if you have previous (non hypercard) programming experience, is to unlearn the things you already know. I agree there should be better documentation for potential switchers from other languages, where syntactic differences like those are covered.
All the best,
Malte
All the best,
Malte
In most of the dictionary pages, there is a "See also ..." list of related functions.
These are hyperlinked (although it isn't obvious) to the relevant page.
It also pays to think in terms of a word rather than a symbol, ie think "add"instead of +.
I really miss things like i++,+= and -=, but you've got to go with the flow
cheers
Paul
These are hyperlinked (although it isn't obvious) to the relevant page.
It also pays to think in terms of a word rather than a symbol, ie think "add"instead of +.
I really miss things like i++,+= and -=, but you've got to go with the flow
cheers
Paul
Your "usual version" is judged coming from your lack of background in xtalk languages. I don't mean to be harsh, but from all your posts you are wanting revolution/xtalk to be c/c++.
Basically your asking for xtalk to take away the one thing that makes it stand out from the "usual" programming languages, its english-like syntax (or readability in other words).
Basically your asking for xtalk to take away the one thing that makes it stand out from the "usual" programming languages, its english-like syntax (or readability in other words).