Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
string formid = txt_formid.Text;


        if (int.Parse(bl.bl_chk_no1(formid)) >= (int.Parse(bl.bl_chk_no(formid)) + 1))
        {

            string OFFER_ID= txt_offer_id.Text;
            string FORMID = txt_formid.Text.Trim();



I find id difficult to understand.
Posted
Comments
[no name] 8-Aug-13 10:40am    
You find what difficult to understand?

1 solution

I've broken the code up into more steps;
C#
// Get data from a text field called txt_formid
string formid = txt_formid.Text;

// Call method bl_chk_no1 that does something to text in formid, 
// returning some sort of number as a string
string no1 = bl.bl_chk_no1(formid);

// Call method bl_chk_no that does something to text in formid, 
// returning some other number as a string
string no = bl.bl_chk_no(formid);

// Get the integer values out
int v1 = int.Parse(no1);
int v2 = int.Parse(no);

// Compare and do stuff
if (v1 >= (v2 + 1))
{
    string OFFER_ID= txt_offer_id.Text;
    string FORMID = txt_formid.Text.Trim();
}


Hope this helps,
Fredrik
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900