Comparing Codes

toootooo Member Posts: 138
Can someone help me, i've been trying for hours now and looking through numberous books but can't figure out how to compare codes in NAV, i've tried all the typical coding standards but nothin works, get an error everytime!??

Comments

  • awarnawarn Member Posts: 261
    Export the object(s) in question as textfiles (as opposed to object .fob files)?

    Then compare the files with a freeware / shareware program you find on the web???

    ?????

    -a
  • toootooo Member Posts: 138
    I need to compare them in the code as in:
    IF ("Doc. No." == PurchRcptHdr."No.") THEN
    'do stuff'
    
  • awarnawarn Member Posts: 261
    IF ("Doc. No." = PurchRcptHdr."No.") THEN
    'do stuff'


    just like that.
  • toootooo Member Posts: 138
    Tried that many of times and it didn't work, works fine now, think i need a break from this!

    Thanks again. :mrgreen:
  • danlindstromdanlindstrom Member Posts: 130
    as awarn tried to say with his code.
    Use single equal (=) instead of doubble (==)
    Regards
    Dan Lindström
    NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
    MBSP Developer for Microsoft Dynamics NAV 2009
Sign In or Register to comment.