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. General Programming
  3. C#
  4. Plz solve the prob its very urgent

Plz solve the prob its very urgent

Scheduled Pinned Locked Moved C#
csharpdatabasesql-serversysadminhelp
7 Posts 5 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.
  • G Offline
    G Offline
    GauravGupta212
    wrote on last edited by
    #1

    1)A program returns a long string like the strings below, delimited by pipe character, where errorcode, error details, and long reason are stored. Write c# code to get the long code out of the response received. 0|R002|this is not a valid transaction. 1|R003|the card has expired. 2|R004|card code is invalid. 2) a. table tblcode has codes like the following CUPA0001 CNOI0001 CUPA0002 CNOI0003 CDEL0001 b. objective is to get the next code given the three digits unique code.e.g. Given DEL, NOI, UPA the next code is CDEL0002, CNOI0004, and CUPA0003 write a function in sql server to achieve this .the function will get input parameter as, city code in 3 characters e.g. DEL,NOI,UPA and should return the next code as per logic above

    T S J A 4 Replies Last reply
    0
    • G GauravGupta212

      1)A program returns a long string like the strings below, delimited by pipe character, where errorcode, error details, and long reason are stored. Write c# code to get the long code out of the response received. 0|R002|this is not a valid transaction. 1|R003|the card has expired. 2|R004|card code is invalid. 2) a. table tblcode has codes like the following CUPA0001 CNOI0001 CUPA0002 CNOI0003 CDEL0001 b. objective is to get the next code given the three digits unique code.e.g. Given DEL, NOI, UPA the next code is CDEL0002, CNOI0004, and CUPA0003 write a function in sql server to achieve this .the function will get input parameter as, city code in 3 characters e.g. DEL,NOI,UPA and should return the next code as per logic above

      T Offline
      T Offline
      TJS4u
      wrote on last edited by
      #2

      never use the word "Plz solve the prob its very urgent" this may be urgent for u .. but be cool to be silent so tht let others read and answer u Good day TJS

      G 1 Reply Last reply
      0
      • T TJS4u

        never use the word "Plz solve the prob its very urgent" this may be urgent for u .. but be cool to be silent so tht let others read and answer u Good day TJS

        G Offline
        G Offline
        GauravGupta212
        wrote on last edited by
        #3

        ok thanks for giving me the suggestion

        T 1 Reply Last reply
        0
        • G GauravGupta212

          ok thanks for giving me the suggestion

          T Offline
          T Offline
          TJS4u
          wrote on last edited by
          #4

          u r welome :) :) :) i had a similar experience so i adviced u?? and many have fire me for posting questions in the manner u have just done :sigh: :sigh: take it easy man ;P

          1 Reply Last reply
          0
          • G GauravGupta212

            1)A program returns a long string like the strings below, delimited by pipe character, where errorcode, error details, and long reason are stored. Write c# code to get the long code out of the response received. 0|R002|this is not a valid transaction. 1|R003|the card has expired. 2|R004|card code is invalid. 2) a. table tblcode has codes like the following CUPA0001 CNOI0001 CUPA0002 CNOI0003 CDEL0001 b. objective is to get the next code given the three digits unique code.e.g. Given DEL, NOI, UPA the next code is CDEL0002, CNOI0004, and CUPA0003 write a function in sql server to achieve this .the function will get input parameter as, city code in 3 characters e.g. DEL,NOI,UPA and should return the next code as per logic above

            S Offline
            S Offline
            sunitkrishna
            wrote on last edited by
            #5

            If you want to get the string "this is not a valid transaction." from the response,you can use this: str.Substring(str.LastIndexOf("|")+1,str.Length-(str.LastIndexOf("|")+1)) where str="0|R002|this is not a valid transaction." regards,

            SRK

            1 Reply Last reply
            0
            • G GauravGupta212

              1)A program returns a long string like the strings below, delimited by pipe character, where errorcode, error details, and long reason are stored. Write c# code to get the long code out of the response received. 0|R002|this is not a valid transaction. 1|R003|the card has expired. 2|R004|card code is invalid. 2) a. table tblcode has codes like the following CUPA0001 CNOI0001 CUPA0002 CNOI0003 CDEL0001 b. objective is to get the next code given the three digits unique code.e.g. Given DEL, NOI, UPA the next code is CDEL0002, CNOI0004, and CUPA0003 write a function in sql server to achieve this .the function will get input parameter as, city code in 3 characters e.g. DEL,NOI,UPA and should return the next code as per logic above

              J Offline
              J Offline
              J4amieC
              wrote on last edited by
              #6

              How about you have a crack at your own homework, and if you have a specific question about some of your code then im sure someone will help.

              1 Reply Last reply
              0
              • G GauravGupta212

                1)A program returns a long string like the strings below, delimited by pipe character, where errorcode, error details, and long reason are stored. Write c# code to get the long code out of the response received. 0|R002|this is not a valid transaction. 1|R003|the card has expired. 2|R004|card code is invalid. 2) a. table tblcode has codes like the following CUPA0001 CNOI0001 CUPA0002 CNOI0003 CDEL0001 b. objective is to get the next code given the three digits unique code.e.g. Given DEL, NOI, UPA the next code is CDEL0002, CNOI0004, and CUPA0003 write a function in sql server to achieve this .the function will get input parameter as, city code in 3 characters e.g. DEL,NOI,UPA and should return the next code as per logic above

                A Offline
                A Offline
                Ankit Aneja
                wrote on last edited by
                #7

                Hmmm Homework, atleast start trying yourself we can help you in some particular thing you are not able to do

                Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

                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