Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Compare record in Visual Studio 2003.NET

Compare record in Visual Studio 2003.NET

Scheduled Pinned Locked Moved Database
questioncsharpvisual-studiocom
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sukasukabo
    wrote on last edited by
    #1

    In Visual Studio.Net2003 on Report Layout after execute my store procedure , we have data like this : Sample Data Chart Of Account (COA) Code and Description. '100000' -> Header | '100000' INCOME '110000' -> sub Header | '110000' OTHER INCOME '110001' ---> detail | '110001' Other Income Branch 15750 ----> there is Sub Total | Sub Total Other Income 15750 '120000' -> sub Header | '120000' INTEREST '120001' ---> detail | '120001' Interest from Bank 12500 '121001' ---> detail | '121001' Interest from Stock Market 07500 ----> there is Sub Total | Sub Total Interest 20000 '200000' -> Header | '200000' EXPENSE '210000' -> sub Header | '210000' Expense from Allowance 10550 '210001' ---> detail | '210001' Expense from Overtime 08450 ----> there is Sub Total | Sub Total Expense 19000 -finally there is Grand Total | Grand Total (15750+20000-19000) 16750 (INCOME - EXPENSE) in PowerBuilder if we want to compare data record we can use llike this : if name1 <> name1 (-1) then..... --> this mean we compare current recorod with previous record i tried this : =iif(Fields!COA.code.value.sbstring(0,1) <> Fields!COA.code.value.sbstring(0,1)(-1), '...', '' but it doesn't correct how do i compare between COA code 100000 with 1100000 in Visual Studio.Net 2003 with or without using Grouping Function ? (especially between first digit and the second digit) and what is the correct syntax ? email : sukasukabo@hotmail.com

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups