User Profile

Collapse

Profile Sidebar

Collapse
Greenwood
Greenwood
Last Activity: Nov 24 '10, 08:57 PM
Joined: Sep 14 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to convert For loop into a Foreach statement?

    Hi all, I think this question should be easy for some of you guys, but I really dont know whats the equivalent, I would like to convert my For loop inot a ForEach statement, anybody familiar with this ?
    Thanks

    Code:
    String tbCommand2 = "";
    String[] tbCommands;
    
    for (int i = 0; i < tbCommands.Length; i++)
    {
        tbCommand2 += tbCommands[i];
    }
    See more | Go to post

  • Greenwood
    started a topic String, substrings for commands in textbox

    String, substrings for commands in textbox

    Hi all, I have a issue, a have a textbox which takes commands, the commands can be something like:

    rp73{
    rp36 {av 14, td 10} ,
    td 35,
    cc -1 1 -2
    };

    I have the code below so far and cant figure out how to make a command like the one below execute.
    Code:
    if (e.KeyChar == '\r')  
    
                 {  
    
                     String command = tbCommand.Text.ToLower().Trim();
    ...
    See more | Go to post

  • Math.Ceiling, how to cast the value, proper synthax?

    Hi Im trying to Math.Ceiling with the following code, where fr is a array of doubles and max is an int, it give me the following error "Error The call is ambiguous between the following methods or properties: 'System.Math.Ce iling(decimal)' and 'System.Math.Ce iling(double)'"

    Code:
    for (int i = 0; i < fr.Length; i++)
                {
                    if (fr[i] < max)
                    {
    ...
    See more | Go to post

  • Thank you so much, everything is working now. Again big thanks
    See more | Go to post

    Leave a comment:


  • Im in a windows App. Form, it gives me an error that std(dataValues) is a method or function and can not be concanated with operand +. yes my textbox is multilign.
    Please advise how to display the methods returned values all together on seprate lines.
    I want ti show like this in my textbox:

    Ecart-type = 2553453454
    Moyenne = 22345342

    Thanks
    See more | Go to post

    Leave a comment:


  • How to wrtite multiple returned values in textBox without Append.

    Need big help, tried almost everything, I need to put a string together, that contains all my returned calculated functions in a textBox. As you can see I have a menuToolStrip option that when I click, it will show the list of my calculated functions, I want it to show them one by one verticaly on different lines. It does not work and I dont know why. Please advise, thanks

    Code:
    using System;
    using System.Collections.Generic;
    ...
    See more | Go to post

  • Reading from text file, return the output of my function in a textbox

    Im writting a program which read a file choosen by the user, it is a txt. file with some numbers in it like :
    98.09809
    09.9879
    95.35445
    after the file has been read, I do some mathematical calculation, the one Im doing here is the standard deviation of all the data in the file. But
    my problem is that I return the result of the function and try to output it to a textbox, nothing worked my textbox is empty. Please...
    See more | Go to post
No activity results to display
Show More
Working...