Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    111

    Re: How to insert a blank file check ?

    Hi,

    You do not need to write an “Empty File Checker”, you just need to write your routine correctly. The reason why you are getting this error is because you call the ReadLine and Split methods on...
  2. Replies
    10
    Views
    200

    Re: VS 2010 If Else If Issue

    Hi,

    Give the kid a break guys and do yourself a favour jasonpaul2001 and delete that text in post #6. FunkyDexter beat me to it.

    You have got a lot to learn but give it time and you will get...
  3. Re: How to "freeze" the screen so I can Capture it with my ScreenCapture

    Hi,

    Not really. I think if I were doing this I would approach the problem in a similar way to begin with and then as you write it you may come across a better way to go about it?

    Good luck.
    ...
  4. Replies
    1
    Views
    103

    Re: Select and count help

    Hi,

    To summarize data you need to create an Aggregate Query with the GroupBy Keyword and then depending on what information you need to return you may then need to Join this to some other table to...
  5. Re: Expression Evaluator - Parenthesis and Negatives

    Hi,

    Just use a DataTable’s compute Method which is a fully functional Expression Evaluator:-

    Dim dt As New DataTable
    MsgBox(dt.Compute("1 + -1", Nothing))

    Hope that helps,

    Cheers,
  6. Thread: Get spaces

    by IanRyder
    Replies
    5
    Views
    160

    Re: Get spaces

    Hi,

    How about these expressions as an example of something different:-

    Dim someString As String = "This j i a test "
    Dim indexPos As Integer = 8

    Dim spacesBefore As Integer =...
  7. Re: Help! Display numbers and grade from tests for each person.

    Hi,

    Then you need to read Post#2 again!

    Cheers,

    Ian
  8. Replies
    16
    Views
    310

    Re: using Properties in a List

    Exactly what I was saying, and has been mentioned by others, there are multiple ways to do this within a Class.

    You can by all means change your Strategy to do something like TG is suggesting but...
  9. Replies
    16
    Views
    310

    Re: using Properties in a List

    So true, but there is nothing wrong with different options and opinions. There is always more than one way to Skin a Cat and ultimately, I would agree with the approach you are suggesting.:)

    NB....
  10. Replies
    16
    Views
    310

    Re: using Properties in a List

    Hi,

    I seem to remember glancing over your other Thread but since others were helping you I did not respond. To be honest, I think you have just got a bit confused?

    If you read a file, line by...
  11. Re: Help! Display numbers and grade from tests for each person.

    Hi,

    If we ignore all the issues that relate to the Namespace “RahimLibrary”, since none of us know what this is, there are quite a few issues there that you need to deal with. First of all, Turn...
  12. Replies
    4
    Views
    220

    VS 2012 Re: Dropping Low Score

    Hi and welcome to the Forum,

    Here is a quick example using a bit of LINQ to Objects to get the desired result:-

    Dim someScores As Integer() = {4, 5, 6, 7, 12, 1, 3, 14, 2, 5}

    Dim...
  13. Replies
    1
    Views
    141

    Re: CSV file to SQL questions

    Hi,

    I would recommend using the TextFieldParser class in this case since it has a property that can you set to identify whether Text Fields are enclosed within Quote Marks. By setting this...
  14. Replies
    13
    Views
    302

    Re: help on count rows.

    Hi,

    Now I understand exactly what you are trying to achieve this is how I would go about it:-

    Create a query which Sums all the Admissions which can then be used to calculate the percentages....
  15. Replies
    13
    Views
    302

    Re: help on count rows.

    Hi,

    Not sure which Percentage you are referring to but if you just want the Sum of Admissions then you can just say:-


    SELECT TOP (100) PERCENT...
  16. VS 2012 Re: Need help converting For If Loops to Do While Loops.

    Hi,

    The first thing to do is to turn Option Strict On and never turn it off. It will help you to identify and correct Type Conversion errors in your code as you make them.

    The reason why the Do...
  17. Replies
    13
    Views
    302

    Re: help on count rows.

    Hi,

    What you need to do is to create a Query which identifies the Top 5 Results and then Excludes these results from a Second Query. As an example have a play with this:-


    SELECT TOP (100)...
  18. Replies
    5
    Views
    182

    VS 2013 Re: Error Creating Window Handle

    Hi all and those possibly reading in the future,

    It has been 24 hours now since I implemented my own fixes in my application and at this point there has NOT been a single instance of the dreaded...
  19. Replies
    5
    Views
    182

    VS 2013 Re: Error Creating Window Handle

    Hi Kebo,

    Thanks for the insight but I think that I have also got that one covered now by ensuring that all the User Controls are now Disposed before they are remove from the FlowLayoutPanel.
    ...
  20. Replies
    5
    Views
    182

    VS 2013 Re: Error Creating Window Handle

    Hi dday9,

    Many thanks and Yeah, I have definitely got that bit sorted since I have seen many examples of memory leaks over the years and I am hoping that I have got this one right now but I am...
  21. Replies
    5
    Views
    182

    VS 2013 [RESOLVED] Error Creating Window Handle

    Hi Guys n Girls,

    I am after a bit of advice or experience if possible. I am still relatively new to .NET with just about over 2 years of professional experience now in the .NET Framework and over...
  22. Replies
    14
    Views
    311

    Re: Timer spanning multilpe forms

    Hi,

    Are you actually talking about a Timer component which actually allows you to run some separate code on its Tick Event on each Form or are you actually talking about a Stopwatch that will...
  23. Replies
    2
    Views
    130

    Re: [RESOLVED] Number formatting issue

    Hi,

    There is nothing wrong with the .NET principles that you are using there and being advised to use FormatNumber as opposed to String.Format sounds like your Teacher has come from a VB6...
  24. Replies
    10
    Views
    327

    Re: Rock paper scissors code problem

    Hi,

    The first thing to do is to switch Option Strict ON now and never turn it off. With Option Strict set to on the compiler will help you to identify and correct Type Conversion errors as you...
  25. Replies
    6
    Views
    209

    VS 2013 Re: how use character string and converting

    Hi,

    For you second question it sounds like you need some sort of conversion routine whereby “a” = 0 and “z” = 25 and all the letters in between increment by 1 each time and then the numbers are...
  26. Re: newbie problem with while ..end statement..

    Hi,

    Things actually work fine but you have just got a few things in the wrong places or you have doubled up where you do not need to. Try this:-

    Private Sub readValuesandNumbers()
    Dim...
  27. Re: newbie problem with while ..end statement..

    HI,

    I cant quite read that so post the code, using Code Tags, and one of us should be able to guide you better.

    Cheers,

    Ian
  28. Re: newbie problem with while ..end statement..

    Hi,

    Just use "If Cint(numberValue) = 0" and your done.

    Glad I could help.

    Cheers,

    Ian
  29. Re: newbie problem with while ..end statement..

    Hi,

    Here is a quick example to demonstrate a While loop working in the manner that you are expecting. Have a read through the comments to understand exactly what each aspect of the code is doing...
  30. VS 2010 Re: Adding integer values up in a listbox and then display them to another listbox?

    Hi,

    I cannot actually see where you have set the variable “dt” but assuming that you have set this correctly and set this as the DataSource of the ListBox then I would suggest that the column name...
  31. VS 2010 Re: Adding integer values up in a listbox and then display them to another listbox?

    Hi,

    As long as what is being displaying in your ListBox is just a List of Numbers entered through the use of the Add or AddRange methods then you can use this to sum the list:-
    ...
  32. Re: [RESOLVED] Read text file and sum a column of data

    Hi,

    Welcome to the Forum but please do not post to an old thread to ask your own question even though you may have used that thread to try and answer your question. At least you looked first...
  33. Re: StreamWriter - comma seperated - how to??

    Hi,

    Your biggest issue is that you have one too many elements defined in your array. You have actually defined 6 elements instead of 5 so you get an extra comma in the output. You then need to...
  34. Re: Real time updating of label in for each loop

    Hi,

    ShaggyHiker has explained the reason why this happens which can be demonstrated using the following simple example:-

    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles...
  35. Re: [RESOLVED] text box - use value of number for equation

    Hi,

    That’s still not great and, as already explained, the reason why “TextBox1.Text + TextBox2.Text” did not work is because they were sting values and therefore the strings were concatenated....
  36. Replies
    32
    Views
    626

    Re: VS 2010 - Integer to Roman Numeral

    Hi,

    Then do not copy and paste. Learn the principle and write your own? That’s the same as any of us showing you an example of which there are loads out there so what the difference?

    Cheers,
    ...
  37. Replies
    32
    Views
    626

    Re: VS 2010 - Integer to Roman Numeral

    Hi,

    Use the internet, I disregarded posting to this earlier since there were so many examples on the there which explains how to do this.

    Cheers,

    Ian
  38. Replies
    14
    Views
    381

    VS 2010 Re: importing text files line by line

    Hi,

    I am aware of Teachers being asked to take classes that they are not qualified to teach but I am not aware of Teachers that have to then specifically Learn a subject that they are not...
  39. Replies
    14
    Views
    381

    VS 2010 Re: importing text files line by line

    Hi,

    Just to be clear, you are Joking, Right?

    If not, and you may be a great Teacher in your chosen field, but how on earth are you supposed to teach this subject if you are asking these...
  40. VS 2008 Re: adding items from a string to a listbox ?

    Hi,

    The “c” character converts the preceding character to type Char which is then compatible with the First overload of the Split method.

    Hope that helps.

    Cheers,

    Ian
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.