CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2013
    Posts
    1

    this part od codes what say?

    Hi,
    i'm not familiar with visual c#! i have a program source! i want to know what says this part of codes:
    Code:
    private void PBOk_Click(object eventSender, EventArgs eventArgs)
    {
        if (Strings.Len(Strings.Trim(this.EnCode.Text)) == 0)
        {
            Interaction.MsgBox("A registration code must be entered.", MsgBoxStyle.ApplicationModal, MODULE11.Security.Title);
        }
        else
        {
            string str2;
            string str3;
            string str4;
            string str5;
            string[] strArray;
            this.EnCode.Text = this.EnCode.Text.Trim();
            string s = "";
            short num2 = (short) Strings.Len(this.EnCode.Text);
            for (short i = 1; i <= num2; i = (short) (i + 1))
            {
                if (Strings.Mid(this.EnCode.Text, i, 1) != "-")
                {
                    s = s + Strings.Mid(this.EnCode.Text, i, 1);
                }
            }
            if (this.AddModule)
            {
                if (MODULE11.Security.AddModule(s))
                {
                    Interaction.MsgBox("Thank you for purchasing. Please restart " + MODULE11.Security.Title + " for the changes to take place.", MsgBoxStyle.ApplicationModal, MODULE11.Security.Title);
                    this.Register = true;
                    this.Close();
                }
                else
                {...

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: this part od codes what say?

    Quote Originally Posted by irandoct View Post
    Hi,
    i'm not familiar with visual c#!
    So why did you post in a Visual C++ forum?

    Regards,

    Paul McKenzie

  3. #3
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: this part od codes what say?

    [ Redirected thread ]
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  4. #4
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: this part od codes what say?

    Quote Originally Posted by irandoct View Post
    i want to know what says this part of codes:
    This code says that its coder didn't know how to use strings in C#.
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured