Recent content by andrews

  1. A

    Resolved hashset to remove items

    Thanks very much for this solution.
  2. A

    Resolved hashset to remove items

    My question. I have hs as hashset(of integers) And always f.e. with items 57,54,51,43,28,26,5,4 , the numbers are always ordered from high to law How can I delete on the most fast way all the numbers starting from 51 to the last number Thanks for any response
  3. A

    dictionary, item ad random

    Very much thanks. It is that i would have, namely something like Hashset and i have seen that it is very very fast! Thanks again.
  4. A

    dictionary, item ad random

    John, thanks very much but if i understand i have also to maintain this key collection because i have to add and remove items . Maybe i have not given the question on a good way. My problem is in fact : The items are JUST a set of random integers, nothing more and I have to do (find ad random an...
  5. A

    dictionary, item ad random

    My question, can I reach ad random an item in my dictionary? And take then the value of the key of that item something like : dim n as integer = rand.next(1,mydic.count +1) or another way
  6. A

    Question why format changing ?

    Question why format changing ? It seems to complicated to me to find a solution in the way you write But I found now a solution who is simple. Replace(double object.ToString, ",", ".") Thanks any way for helping me.
  7. A

    Question why format changing ?

    Question why format changing ? My regional settings on my computer are Belgian,thus "," is a decimal setting. In my programs in vb.net I use always "." as a decimal setting and there are never problems in the programs. But now I have to get results outside my program in string format in a txt...
  8. A

    Question why format changing ?

    Why do I receive another format and how can I make it good? Dim a As Double = 5.126 Dim w As String w = CStr(a) ' w = 5,126 not good I have to get w = 5.126 Thanks for any response
  9. A

    Question sorting lists

    I do not think that an example is useless. Let's take another cd,bac,31,bca,af,11,23,08 Sorting this 08,11,23,31,af,bac,bca,cd But I want af,bac,bca,cd,08,11,23,31 I think that the problem is clear I see one a solution, I have to do something before because vb.net can't do it immediately The...
  10. A

    Question sorting lists

    I have a list of strings. These strings are f.e. 5,8...a,k... When I sort then 5,8... is placed before a, k... Can I sort the list so that I get a,k,...,5,8.. Thanks for any response.
  11. A

    Question power of biginteger

    To get a power of a biginteger is easy : result = numerics.biginteger.pow(bignumber,6) But how can I get the result if the power is not 6 but 0.238 , numerics.biginteger.pow(bignumber,0.238) ? Thanks for any response
  12. A

    Question big floating numbers

    Thanks for the solution.
  13. A

    Question big floating numbers

    It was not possible to me to get a floating number result using biginteger or using what? f.e. the division 123456789123456789123456789123456789/987654321 I want some result like 874587964569874568.36521457885476 Is it possible?
  14. A

    Question to draw polygon

    I have a array of points with coodinates (ar can have f.e. 200 points) ar(1,0) = 1 ar(1,1) = 10 ar(2,0) = 5 ar(2,1) = 15 .. .. where point1 x = 1 y = 10 point2 x = 5 y = 15 How can I draw the polygon with these points f.e. for i = 1 to ar.getupperbounds(0) ?? next g.drawpolygon(??? I can...
  15. A

    Question random item in list

    random inlist I was thinking that when I use the word immediately that you should understand that it was not from 1 to 50 but with O(1)
Top Bottom