Posts by PhilHdt • 171 points
2 posts
-
2
votes3
answers1980
viewsA: How to find a letter in a string?
A very readable format would be to use the character array that any String offers united with a count: lookup_char = 'a' 'abcd abc ab a'.chars.count {|c| c == lookup_char} # => 4…
-
5
votes7
answers10092
viewsA: How to make child form change values in parent form C#?
It is not good practice to delegate this responsibility to the child form. In general it would be the responsibility of the parent form (containing the combobox) to modify the contents of this…