Author Topic: right and right$ not working  (Read 6810 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
Re: right and right$ not working
« Reply #15 on: March 01, 2013, 03:05:11 PM »
There is no RIGHT$ !

JRS

  • Guest
Re: right and right$ not working
« Reply #16 on: March 01, 2013, 07:20:15 PM »
Quote
There is no RIGHTS !

Yep, we gave those up years ago because no one felt they were worth protecting. Do you want to see what justice has evolved into, spend some time at your local court house and be thankful your just an observer.






Peter

  • Guest
Re: right and right$ not working
« Reply #17 on: March 02, 2013, 01:04:26 AM »
Quote
spend some time at your local court house

We have our courthouse  torn off.
It was eyesore in the eyes of the righteous people.

Aurel

  • Guest
Re: right and right$ not working
« Reply #18 on: September 01, 2013, 10:15:42 AM »
Charles
In my expression evaluator macro right()
macro right(s,i)
mid(s,-i)
end macro


not work properly, i don't know why because macro default()

MACRO Default
DefWindowProc hwnd,wMsg,wParam,lParam
END MACRO


work fine  ;)

so i use Function Right()

Charles Pegge

  • Guest
Re: right and right$ not working
« Reply #19 on: September 01, 2013, 12:25:26 PM »
Macros are vulnerable to operator grouping when passing an expressions

For instance

macro right(s,i)
mid(s,-i)
end macro

t="qwerty"
a=1
print "!"+right(t,2+a )+"?"   'result: !y?
print "!"+right(t,(2+a) )+"?" 'result: !rty?


solution: put brackets around i inside the macro

macro right(s,i)
mid(s,-(i))
end macro

t="qwerty"
a=1
print "!"+right(t,2+a )+"?"   'result: !rty?




Aurel

  • Guest
Re: right and right$ not working
« Reply #20 on: September 01, 2013, 01:04:31 PM »
aha i see...
  ;)

JRS

  • Guest
Re: right and right$ not working
« Reply #21 on: September 01, 2013, 01:47:36 PM »
It's easy to get lost on unpaved pathways. New highways aren't easy to build.