Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 30 MAR 2005 08:04:04PM Steve Botes wrote:

I am trying to take a string and reverse the order I am doing the following and getting what appears to be a wrong answer.

string1=123400

string2=string1 -1, -LEN( string1)

or

String2=SERIAL -1, -7

In both cases string2 contains 00432

I would expect 004321

Anyone have any ideas?


At 31 MAR 2005 03:08AM Colin Rule wrote:

String2=string1 -1, -7

and indeed

String2=string1 -1, -6

works fine in OI 4.1 and returns 004321

I note you have -7, but the length is in fact 6 characters.

Also Variable was called SERIAL?, possibly typo/cut-paste issue.

Also other version using LEN works too.

Colin


At 31 MAR 2005 04:23AM [email protected] wrote:

We can duplicate this in 7.1.

[email protected]

The Sprezzatura Group Web Site

World Leaders in all things RevSoft


At 31 MAR 2005 05:01AM Warren Auyong wrote:

Probably related to the UTC stuff that's caused grief in the FMT routines too.


At 31 MAR 2005 08:52AM Mike Ruane wrote:

Steve-

This is normal, expected behavior.

Same in OI7, 4, 3 and arev 3.

Edited Later: OK, I see the bug now- it's bringing the string back in the correct order, but not the correct length. I don't believe it is an issue when the string you try to extract is shorter than the total length of the string.

Mike

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/26c6cc345e4ba38c85256fd500005f51.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1