amture106's Profile User Rating: -----

Reputation: -1 Dishonored
Group:
Active Members
Active Posts:
147 (0.23 per day)
Joined:
08-September 11
Profile Views:
3,494
Last Active:
User is offline Apr 08 2013 08:00 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   amture106 has not set their status

Posts I've Made

  1. In Topic: Function in VBA

    Posted 5 Apr 2013

    The implementation code is
     =Increase(B2, B8)
    
  2. In Topic: Function in VBA

    Posted 5 Apr 2013

    What I'm trying to do is I have two fields. Lets call the first one X and the second one Y. X will vary depending on the user input. X can be 1, 2, 3 or any number that the user input. Y will start as ZERO, but will keep increasing depending on the value of X. for example the first run of the function will be like this:
    X = 0
    Y = 0
    ---------
    X = 5
    Y = 5
    ---------
    X = 3
    Y = 8
    ---------
    X = 2
    Y = 10

    and so on, but what's happening in my code is like this.

    X = 0
    Y = 0
    ---------
    X = 5
    Y = 500
    ---------
    X = 3
    Y = 800
    ---------
    X = 2
    Y = 1000

    and so on, so how to fix that
  3. In Topic: Multiaple argument for StringTokonizer

    Posted 6 Mar 2013

    View Postg00se, on 06 March 2013 - 05:40 AM, said:

    Quote

    can't open the page
    That's because the editors on this site are buggy and it's breaking the link.
    THIS LINK

    this link contains some javascript stuff which I try to avoid. I wana do this program with just Java
  4. In Topic: Multiaple argument for StringTokonizer

    Posted 6 Mar 2013

    View Postg00se, on 06 March 2013 - 04:54 AM, said:


    can't open the page

    View Postraghav.naganathan, on 05 March 2013 - 11:56 PM, said:

    Well, try enclosing the * and + in square brackets like this.
    tokens = str.split("\\[*]||/||[+]||-");
    


    regards,
    Raghav



    it does work, but the result I get is like this
    Enter a mathematical operation
    897*856-97/56*61
    
    8
    9
    7
    *
    8
    5
    6
    -
    9
    7
    /
    5
    6
    *
    6
    1
    
    
    where the result is suppose to be like
    897
    *
    856
    -
    97
    /
    56
    *
    61
    
  5. In Topic: Saving and loading ListView items

    Posted 1 Mar 2013

    well after I read that my first post was correct, but all I needed is to add
    sw.Close()
    
    so just for the future reference here's a working code to save ListView items into a text file
    try
                {
                    StringBuilder sb = new StringBuilder();
                    StreamWriter sw = File.AppendText("LogFile.txt"); ;
                    string item;
    
                    if (logListView.Items.Count > 0)
                    {
                        foreach (ListViewItem lvi in logListView.Items)
                        {
                            foreach (ListViewItem.ListViewSubItem listViewSubItem in lvi.SubItems)
                            {
                                sb.Append(string.Format("{0}\t", listViewSubItem.Text));
                            }
                            sw.WriteLine(sb.ToString());
                            sw.Close();
                        }
                    }
    
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Something went wrong, please try again!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
    
    

My Information

Member Title:
D.I.C Head
Age:
20 years old
Birthday:
September 14, 1992
Gender:
Full Name:
Ebrahim Abdulsattar
Years Programming:
0
Programming Languages:
Java, HTML,CSS

Contact Information

E-mail:
Click here to e-mail me

Comments

amture106 has no profile comments yet. Why not say hello?