Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

echo %@index[1234,.,-1] return -21 in new version

---- Original Message ----
From: MartinRichter
To: [email protected]
Sent: Thursday, 2011. March 3. 07:48
Subject: [Support-t-2646] echo %@index[1234,.,-1] return -21 in new
version

| Hi!
|
| The new Version 12.1 seems to have a bug.
| If I execute
| echo %@index[1234,.,-1]
|
| I receive the result-21!
|
| How that?

The result I see in the latest builds for V9, V10, V11 and V12 is the correct, indicating in accordance with the documentation that it did not find the period "." character in the string "1234": -1.

Do you possibly have an @INDEX function defined in a plugin, or by the FUNCTION command? Either one would return its own result instead of that of the built-in function!
--
Steve
 
The code were I used it is a batch file that is 4 or 5 years old and unchanged.

Totally strange. I repaired the installation and now I have the correct result.

I am sure that I didn't have any plugin or function here.

OK, fixed but reason unknown... :-(
 
---- Original Message ----
From: MartinRichter
...
| I repaired the installation and now I have the correct result.
|
| I am sure that I didn't have any plugin or function here.
|
| OK, fixed but reason unknown... :-(

I'd say the reason was a damaged program file (probably takecmd.dll), else "repair" would not have corrected the result.
--
Steve
 

Similar threads

Back
Top