Comparing strings that are equal, but If statements saysthey are differ

I've been trying to find why my object is always getting set to a state of
being modified and have found the following method that takes a "string"
passed into it and the attribute that is being compared is also a "string".
The test thinks that they are not equal, but the logMessage shows that the
contents are the same. I've used this same kind of method with other
"strings" and have them working just fine. The version of Forte is 3g and
maybe in a couple of months we will be moving up to version 3.m.2
Any ideas would be helpful, for now, I'm going to take the strings and
assign them to TextData and compare them that way. I know that I've had to
do this before for another object, but I don't understand why it works on
some and not on others.
Thanks, Michael
Method code:
setDefaultText(pDefaultText:string)
tt : Textdata = new;
tt.concat('aDefaultText:|').concat(aDefaultText).concat('|\n');
tt.concat('pDefaultText:|').concat(pDefaultText).concat('|');
logMessage(tt);
if (aDefaultText <> pDefaultText) then
aDefaultText = pDefaultText;
setModified('aDefaultText');
end if;
Output from logMessage:
31-Jul-2000 08:42:10 CHWOReportPrompts aDefaultText:||
pDefaultText:||
! Collect Stable(Pages:8993)->(Pages:6307)
Michael J Schumacher
Systems Analyst
Carlson Hospitality Worldwide - Reservation Center
Phone: 402.491.6195
Fax: 402.498.9166
Email: michael.schumachercarlson.com

I took a class in school on file organization and processing which used a book of the same name, and had a section of spell checking algorithms that used a trie. I don't remember the specifics, but it could skip over the current character if it didn't match, and keep processing the rest of the string. One part of the matching was that if there was an extra character, (if you treat words as characters in your example), it would match the rest of the word. The book was by Alan Tharp if you want to try to look it up. That's probably overkill for your problem, but it might give you some inspiration.

Similar Messages

  • Material number are same but attribute of materials are different.

    What if we have two system connected with APO with similar material numbers but in fact different material in description.
    I mean, numbers are same but attribute of materials are different.
    How to address it in APO.....?
    Regards

    HI,
    An SCM system (APO) can be integrated with multiple ECC systems (logical
    systems). It may therefore be the case that the number assignment for certain
    master data objects, for example, material masters, is not the same in all these
    logical systems. In the example above, material number A in logical systems 1
    and 2 signifies the same cube, whereas the same material number in logical system
    3 (perhaps a subsequently purchased plant) is a cylinder.
    If logical systems 1, 2 and 3 are planned with the same SCM System, the problem
    arises that the system cannot simply transfer the ECC material numbers into APO,
    as they may be ambiguous.
    To guarantee that the naming of master data in distributed system landscapes is
    unique, business system groups are defined in APO as areas of the same naming
    convention. A Business System Group (BSG) groups different physical systems to
    form a higher-level logical unit.
    If, for example, two logical systems (LS1 and LS3) exist in a system landscape in
    which you want to integrate APO and contain different materials with the same
    name (Material A is a cube in LS1, but a cylinder in LS2), this conflict must
    be resolved for integration in APO. First of all, both logical systems are to be
    assigned to different business system groups (BSG1 and BSG2).
    check and revert back , Hope it will help you.
    Regards
    Ritesh

  • I'm having trouble with my contacts.  The contacts are listed but the phone numbers are no longer there.  Can someone help?

    Phone numbers are no longer visible in my contacts and I'm having trouble syncing my contacts from my outlook contacts.  Any suggestions for how to restore contacts?

    Hi and Welcome to the Community!
    I recommend that you attempt to boot into Safe Mode:
    KB17877 How to start a BlackBerry smartphone in Safe Mode
    It may take you multiple attempts to get the ESC key sequence (press/release/hold) correct, so be patient. When successfully into Safe Mode, see what happens.
    If the behavior ceases, then think carefully...what happened just before this behavior started? A new app? An update? A Theme? Something else? Think carefully as the smallest change could be causal...and attempt to undo whatever that was.
    But if the behavior continues in Safe Mode, then you may need to consider more drastic actions -- WIPE, OS Reload, BBSAK Wipe/Reload, and the "Bare Bones" OS Reload Process. To prepare, you should be sure that you have a full backup to your PC...please review the Backup link in my auto-sig on this post for instructions.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Trying to compare string array using equals not working

    Hi,
    im prolly being really dumb here, but i am trying to compare 2 string arrays using the following code:
    if(array.equals(copymearray))
    System.out.println("they match");
    else
    {System.out.println("dont match");}
    the trouble is that even though they do match i keep getting dont match, can anyone tell me why?

    try
    if (Arrays.equals(array, copymearray))
    System.out.println("they match");
    else
    {System.out.println("dont match");}

  • HT5312 apple is saying that my secerity questions are wrong but i know they are right. how do i get into my appleid to be able to use my new iphone?

    how do i get the "correct"answers to my apple id?since i dont know them somehow?

    change your security questions at support.

  • I have deleted all my photos and videos from my camera role and all my photos are there and they are safe but my videos they are there but they dont play. it only shows a picture of it there is no way of playing them ... have i lost the videos then?

    someone please help i went to a concert and took tones of videos and pics but then when i got home my camera role was full so i looked on icloud and saw that everything has been saved on there so i didnt worry about deleteing all of my videos and photos but then when i did that ( always the way it goes ya dont reolize until its to late :@ ) all my videos wont play they have almost just turned into photos. you see the start image like on camera role thing but you cant click on it to play the video
    this is on my iphone 5 by the way

    Welcome to the Apple Community Diane.
    I find that shared video can be troublesome, a few haven't appeared to work as you describe but have done when I've looked at a later date. Hopefully they will work if you give them a bit longer. perhaps it would be a good idea if you make sure they are working before deleting them from the camera roll.

  • Loaded app SkyDrive Pro onto my ipad when I try and sign in tells me the details are incorrect, but I know they are correct, any ideas how to fix

    I downloaded a SkyDrive Pro app but cannot get it to recognise by sign om, even though it is correct.

    From Apple Support...
    Here are troubleshooting steps that should help you fix the problem.
    1) Quit App Store in multi-tasking.
    2) Tap Settings.
    3) Tap Safari.
    4) Tap Clear History.
    5) Tap the Clear History button.
    6) Tap Clear Cookies and Data.
    7) Tap the Clear Cookies and Data button.
    Try purchasing an app again from the device to get the security question prompt. You really need to set up the security question.
    ...it seems to have worked for me.....

  • HT5902 my icould photos no longer are visible on my PC all the folders are there but empty. They are visible on my iphone and ipad.

    a few days ago a new folder appeared in my photos folder on PC called Icloud. Previously all icloud photos were going to a folder called my Photo stream. now my icloud photos are not autoatically going to my PC in either folder (either the new icloud one or the old my photo stream one) but they are sharing between my iphone 5 and ipad 3.
    Im using windows 7 and i think the cloud has just been upgraded (??) to 3.1
    I tried taking icoud off my computer and re-installing but this hasnt worked.
    My icloud photos says that my photos are not enabled but when I look on iclud the photos box is ticked>
    Im confused and not sure what to try next.
    any tips would be welcomed

    Jnst76,
    Go to your iPhone>Settings>Mail,Contacts,Calendars>Calendars>Sync...select "All Events."

  • Volume changes when headphone are plugged, but not when they are unplugged.

    Hi!
    Recently I been having an issue with my Macbook Pro 13.
    When I connect my headphones to the MBP, the volume changes (as it should be), but when I take them out it doesn't return to normal, it just stays where it was when the headphones were connected.
    Now, if i mute my internal speakers and connect the headphones the volume changes, but when i take them off, the volume returns to mute. So the problem is when both (internal speakers and headphones) are set to different volumes.
    Here's a video that shows what happens in sound control panel (it's in spanish, "Auriculares"= Headphones and "Altavoces Internos"= Internal Speakers)
    http://www.youtube.com/watch?v=EdNttRFnxE8&
    Does anyone else have this issue?
    Thanks for your answers!
    Andrés

    Try a hard reset of the Nano. To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    I assume you have double checked to make sure you are plugging the headset all the way in meaning the white part of the headset is flush with the body of the Nano?
    B-rock

  • Emails are send. but still some emails are present in OUTBOX

    we have a issue in our infrastructure for few users. the emails are send and shows in send items. but still we can see emails in outbox (not all of them). this is utilizing the mailbox space. any idea how this issue arrived and its fix

    Hi,
    In case it's caused by a corrupted data file, please run Scanpst.exe to fix the data file to check the result.
    Follow the instructions in this kb:
    http://support.microsoft.com/kb/272227/en-us
    If you are using an .ost file, you can simply rename/remove it, then Outlook will generate a new one next time it starts.
    Some corrupted or hidden rules may also cause this problem, you can use MFCMAPI to find and delete these rules to check the result:
    http://mfcmapi.codeplex.com/releases/view/118446
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    Melon Chen
    TechNet Community Support

  • How to compare two strings whether both are equal while ignoring the difference in special characters (example: & vs & and many others)?

    I attempted to compare two strings whether they are equal or not. They should return true if both are equal.
    One string is based on Taxonomy's Term (i.e. Term.Name) whereas other string is based on String object.
    The problem is that both strings which seem equal return false instead of true. Both string values have different special characters though their special characters are & and &
    Snapshot of different design & same symbols:
    Is it due to different culture or language?
    How to compare two strings whether both are equal while ignoring the difference in special characters (& vs &)?

    Hi Jerioon,
    If you have a list of possible ambiguous characters the job is going to be easy and if (& vs &) are the only charracters in concern awesome.
    You can use the below solution.
    Before comparing pass the variables through a replace function to standarize the char set.
    $Var = Replace($Var,"&","&")
    This is going to make sure you don't end up with ambiguous characters failing the comparison and all the char are "&" in this case.
    Similar technique is used to ignore Character Cases 'a' vs. 'A'
    Regards,
    Satyajit
    Please “Vote As Helpful”
    if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Using equals() to compare strings

    It was told in a previous post that when comparing two strings to use the equals()
    So rather than doing something like this
    package relationships;
    public class Starter {
         public static void main(String[] args){
              String foo = "foo";
              String bar = "bar";
              if(foo == bar){
                   System.out.println("Strings are logically equal");
              } else if(foo != bar){
                   System.out.println("Strings are not logically equal");
    }Where the console would output "Strings are not logically equal" How would I do this using the equals() (other then using else)
    package relationships;
    public class Starter {
         public static void main(String[] args){
              String foo = "foo";
              String bar = "bar";
              if(foo.equals(bar)){
                   System.out.println("Strings are logically equal");
              } else if( /* WHAT GOES HERE? */ ){
                   System.out.println("Strings are not logically equal");
    }I know to test if they are equal just to go like this foo.equals(bar) but what would I put in the else if?
    else if( /* WHAT GOES HERE? */ )

    Where the console would output "Strings are not
    logically equal" How would I do this using the
    equals() (other then using else)You don;t need anything else. If it is not true it is false there isn't a third boolean value of maybe or perhaps.

  • All that comes up when I open Firefox are my toolbars and a place to enter a URL, but there is no window. I have to enter full screen mode to view websites.

    Something happened with Firefox where all that comes up when I open Firefox are my toolbars and a place to enter a URL, but there is no window. I have to enter full screen mode to view websites. How do I get back to a regular browsing window? I have no idea how this even happened.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?

    I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?  I've been looking at Duplicate Annhilator but I don't think it can do it.
    Thanks!

    I just ran a test with iPhoto Library Manager, Duplicate Annihilator, iPhoto Duplicate Cleaner, Duplifinder and Photodedupo.  I imported a folder of 5 photos into a test library 3 times, allowing iPhoto to import duplicates.  I then ran the 5 photos thru resizer to reduce their jpeg compression but all other aspects of the file the same.
    None of the duplicate removal apps found set that was reduced in the file resizer. That's probably due to the fact that the file creation date was being used as a criteria and the resized photo would have a different file creation date even though the Image Capture date was the same.
    They all found the 3 regular duplicates and some of them would mark two and leave the 3rd unmarked.  iPhoto Duplicate Cleaner can sort the found duplicates by file size but if the file was edited to get the reduced file size it might not be found as it would have a different file creation/modification date. 
    iPhoto Library Manage was able to find all duplicates and mark them as such if the file names were the same the the filename option was selected.  Otherwise it also missed the modified, resized version.  It allowed one to select the one photo to save before going to work on the library.
    So if a photo has been reduced in image quality or pixel size it will not be considered a duplicate.
    OT

  • Exchange BPA Errors (Exchange server is a virtual machine but the additional tools are not installed and The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing)

    Hi,
    I am running BPA on My Exchange 2010 VM (Server 2008 R2 VM on Hyper-V) and get the following errors:
    The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing or inaccessible. The Microsoft Exchange Information Store service won't start. As a result, all services that depend
    on this service won't be able to start
    Exchange server [Exchange Server FQDN] is a virtual machine but the additional tools are not installed. This configuration is not supported. Install Virtual Machine Additions for this guest.
    Problem is that, for the first, that Key exists and the service is actually running fine. And for the second my VM tools are already installed.
    Hopefully someone out there has had the same issue and can assist.
    Pete

    Hi Pete,
    For the first error message, please try the following steps:
    Make sure the Information Store service is in Starting status,
    Automatic startup type and works well, as a test we can try to
    restart the Infroamtion Store service and verify the service works well.
    Start
    Registry Editor, find the registry key “Services” under “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup”, its value is “C:\Program
    files\Microsoft\Exchange Server\v14”(default install location), please check your registry, make sure the key “Services” exist and value is the Exchange Server install location and the
    location is accessible;
    Start
    Registry Editor, and locate the following registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Setup
    Use the
    Permission option under the Security tab to check the permission setting on this key. Make sure
    System is in the list with Full Control permissions if the service account is Local System. If you are not using Local System as the service account, check the existence of the corresponding account in the list and ensure that
    it has Full Control permissions. Please refer to this article:
    Title: Exchange Store Does Not Start: Errors 7024, 1026, 9542, and 5000
    Link:
    http://support.microsoft.com/kb/285116
    Start
    ADSI Edit, and then browse to the following location:
    Domain.com/Configuration/Services/Microsoft Exchange/Org/Administrative Groups/AdminGroup/Servers/Server Name
    Right-click the
    server name, and then click Properties.
    Click the
    Security tab, make sure this own server’s server object have
    full control permission on its own server.
    If not or the object is missing, please modify the permission or click
    Add, locate the computer account for the Exchange Server computer, add it to the Permissions list with full control.
    Click OK, and then close ADSI Edit.
    Use
    Active Directory Users and Computers to add the current affected
    Exchange Server computer account to the Exchange Servers(previous version should be “Exchange Domain Servers”) group in the
    Microsoft Exchange Security Groups( or Users) OU. Refer to this article:
    http://support.microsoft.com/kb/297295.
    Restart the Exchange Server computer, then rerun the ExBPA.
    For the second error message, Microsoft don’t recommend to install Exchange Server on virtual machine without additional tools, so the error message occurs. We can just ignore
    this message, it will not affect the Exchange servers.
    Regards, Eric Zou

Maybe you are looking for

  • Does iPhoto 09 allow you to find a photo from outside the program?

    I quit using iphoto with 08 since I can't access the photos from my Adobe applications. I'm using Bridge right now, but there are some features I prefer in iphoto. However, I use these photos in publications and have to export them to another place i

  • LSMW--- I am not seeing some variables, which r using in abap code!

    Hi Experts, Am enhancing the LSMW---> Create_Material, so I hv some basic doubts, pls. clarify, 1 - In the following satemenrts of the code, the programmer used my_langu(variable?), so, Where the programmer has declared(attributes & value) the my_lan

  • How to create a wiki with iWeb ?

    Hi ! Any idea about how to create a wiki with iWeb ? I want to make a school web page but, instead of doing it myself, I thought it would be more interesting to make every student contribute - that's the point of making a wiki ! Could anyone help me

  • Buddy idle times

    on my old macbook pro(running osX) I can see buddy idle times in ichat/jabber. My new macbook pro is running Snow Leopard and I can no longer see idle times. Am I missing a setting?

  • How can I solve this MSAA error?

    Hello I'm fairly new to Coded UI so please cut me some slack. What I'm trying to do is just something very simple. Taking a screenshot of MS Excel. Here are my steps to reproduce: Pre-requisite: Have Excel 2010 Open Steps: Begin Recording 1. Hover yo