LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Strings not comparable??

If I follow you have "L" in two variables which fail to return true if
compared. It does seem odd so as a first step verify the strings in each
variable are truly the same.

In your procedure declare
Dim bArr() as byte

Put a break at the point you think the two var's should be the same, step
through and do this

bArr = k
'look in locals
bArr = sKuerzel
'look in locals

Press alt-v,s to look in Locals, expand and examine bArr
I would expect to see bArr(0) = 76, bArr(1) = 0 for each string = "L"

Regards,
Peter T






"Marco Bandner" wrote in message
ps.com...
Hi Peter,

bound = UBound(Daten) - 1
For index = 0 To bound


Why the -1.


At moment of coding I thought, array are indexed from 0 to n-1 (n =
ubound). You can ignore that regarding my problem.

Could it be you are failing to find a match in Daten(UBound)


Definetely no - to test my code (and this example of the problem case),
first I insert all values into that array, I want to find. While
debugging line for line, the VBA IDE shows me
at line "If k = sKuerzel And m = sMass Then" that k and sKuerzel
contain the same(!) values. Nevertheless comparising delivers "false"
for that case that k = sKuerzel = "L". I don't understand that.

Has anybody an idea??

Regards, Marco



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find and replace numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
comparable week numbers overs years Joël Excel Discussion (Misc queries) 1 April 16th 07 03:33 PM
comparable week numbers over years Joël Excel Discussion (Misc queries) 0 April 11th 07 02:12 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
Looking for comparable data records between Sheet1 and Sheet2 Jim May Excel Discussion (Misc queries) 3 April 1st 05 08:04 PM


All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"