Search results for query: *

  1. M

    How to convert a string to Title Case

    I have a couple of comments to make, hopefully for the better. 1. Title case The example given is for title case, which means that the less important words such as 'the', 'a', and so on will remain in lower case, and it appears that all words are in lower case except the first letter of...
  2. M

    Creating a manual Sine Subroutine and Cosine Function in an external module?

    I do understand that the whole project is an exercise in programming, perhaps recursion or other aspects. On the other hand, students are supposed to learn to do things the right way at school, because what they do there may be reused later on in real life. A very practical application of...
  3. M

    Creating a manual Sine Subroutine and Cosine Function in an external module?

    ...rounding error is retained. Private Function Sine(ByVal x as Double) as Double Dim sum As Double = x Dim term As Double = x Dim x2 As Double = x*x For i As integer = 3 to 99 Step 2 term=-term*x2/i/(i-1) sum=sum+term Next Return sum End Function Similarly, the cosine is calculated as...
  4. M

    Output help

    You're welcome.
  5. M

    problem with arrays

    If the array is long (for example 500), you can initialize it with a For-Next loop after the declaration (dim). Happy programming.
  6. M

    Unique, Random Number Generator

    I suggest you generate the number and check against all retained numbers. If it already exists, then reject it and move on to the next till all slots are filled. Happy programming.
  7. M

    Output help

    As you are probably aware, the writeLine method of the StreadWriter class is highly overloaded, meaning that you can have different combination of arguments to do different things. In other words, what it does depends on the NATURE of the arguments. It may not be obvious from the example, but...
  8. M

    Show me an example for this site?

    If I understand correctly, the page includes a rather detailed example already.
  9. M

    VB.NET Question on a calculation

    ...the textbox blank, or enters an alpha character. You may want to check out the rules to see if the point increments are in slices of $100, in which case the code will be different. For negative increments, you could use the syntax: Point -= 25*Val(RevolvingDebit.text/10000) Happy programming.
  10. M

    VB.NEt - Problem with Listbox

    If you could post the simple program that exhibited similar problems, perhaps other readers could try it out, on different machines and different versions of the compiler, of course. This may give you a better insight to solving your issures. Happy programming.
  11. M

    VB.NEt - Problem with Listbox

    It is probably not practical to see you code. However, if you could reproduce the problem with a separate program by incorporating the suspected factors (list boxes, etc), you'd see where the problem comes from by elimination of many details. Happy programming.
  12. M

    Generate the executable file that can run anywhere

    It looks like that if you would like to run your application on a new computer, the following requirements must be met: 1. the new computer must have Microsoft Framework installed. http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&displaylang=en 2. you...
  13. M

    Factoring of Polynomials

    Thanks for the reply. There was an error in my reply for which I should make a correction: x3+y3 HAS factors: x3+y3=(x+y)(x2-xy+y2) Which flavour of C++ with which you are doing your project? Visual C++ or others? Good luck with your project, and write anytime.
  14. M

    Which section do I need to go to?

    One approach would be to put your variables in a data base, and the multiple copies of the game will query the data base to find the current values, or to modify them. Your VB.NET knowledge will definitely be useful, but you'll need to arm yourself with tools to manage a data base online, such...
  15. M

    Factoring of Polynomials

    First I assume you need algebra help and not programming help. If that is not the case, let me know (excuse the exponents that are not written in superscript). A. A Trinomial is of the form (ax+by+c)(dx+ey+f)=adx2+(ae+bd)xy+bey2+(cd+fa)x+(ce+fb)y+cf by equating the coefficients of each term...
  16. M

    Events not firing

    Check that you button is actually named btnAddUser. Other than that, you'd have to check if the click handler is not firing, or there is a problem with your routines to add user. You could do this by printing a message while inside of the handler. Happy programming.
  17. M

    Date manipulation w/Date TimePickers

    Look-up TimeSpan class. It does what you are looking for. Happy programming. www.mathpath.net for math freaks and computer geeks
  18. M

    VB.NEt - Problem with Listbox

    I do not know why the listboxes show up differently on other systems, other than the fact that other screen resolutions may be different. You could control the size and location of the listboxes programatically, this way, you will be sure to have the same size under all conditions. Happy...
  19. M

    Dynamically addressed Fields

    ...Dim txtQ(25) As TextBox Dim i As Integer For i = 0 To 24 txtQ(i) = New TextBox() Controls.Add(txtQ(i)) txtQ(i).Top = Math.Floor(i / 5) * 30 txtQ(i).Left = (i Mod 5) * 50 txtQ(i).Width = 45 txtQ(i).Text = "Box " & i.ToString() ' text according to your needs Next End Sub...
  20. M

    Dynamically addressed Fields

    If you are using labels or textboxes, you could put them up as arrays, even two-dimensional if you wish. Then you can manipulate them within you procedure and address them by their subscripts (0-24). Basically, you dimension or redimension them as an array, such as: ReDim lblSQ(intOrder...
Back
Top