• Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Well, DUH!

    Just watched Mike Pence talking about the United States Space Force. And then it hit me. You know, the `F` in `USSF` can be turned into an `R` so easily. …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Well, DUH!

    There is a lot of hoopla over the fact that Apple is not valued at over one trillion dollars. If you converted to today's dollars, the Dutch East India Trading …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How do you color cell of the listview ?

    This may be silly question, but if you don't know how to write code then how are you planning to implement it?
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Create a Video Library with an Embedded Windows Media Player

    On an unrelated note, I tried to rebuild a version that uses VLC Media Player instead of Windows Media Player and it failed to even display the form when I …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Create a Video Library with an Embedded Windows Media Player

    I recompiled under 2017 and it ran with no problems.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Create a Video Library with an Embedded Windows Media Player

    Please post the error message. Also, please post the values of `Root` and `FileMask`. I wrote it in vb.Net 2012. I'll rebuild it in vb.Net 2017 and see what happens.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Gave Reputation to rproffitt in How do you color cell of the listview ?

    This may be a rarely used API call. Read [https://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem.useitemstyleforsubitems(v=vs.110).aspx](https://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem.useitemstyleforsubitems(v=vs.110).aspx) Example code is there in C and VB.net. Also pick over the few priors with this -> https://www.google.com/search?q=UseItemStyleForSubItems
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Memorable Quotations

    We allow people into the political system who routinely distort facts, who twist laws in order to suit patrons who give them campaign money. Some of whom just plain lie. …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How do you color cell of the listview ?

    As far as I know you can't change the colour of an individual cell in a listview (details view). You can only change the colour of an entire row.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Remember Those?!

    Sadly, Ancient Dragon died a while back. Several other members are nbow posting under other usernames. Dani is preparing to roll out some major (details unavailable) changes to try to …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Remember Those?!

    You've been away for quite some time.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Laptop function (fn) key is always on

    If it's a Dell (for example) pressing Fn-Esc toggles the function keys between standard windows (F1=Help) and Dell functions (F1=Mute).
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Help! VB 2010 Format Textbox into two Decimal Places

    Math.Round(2.435, 2) - result is 2.44 Math.Round(2.445, 2) - result is 2.44 The second parameter is the number of decimal places. Note that if you want to consistently round up …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in PLease help

    You'll also find some excellent suggestions on how to post questions in [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question).
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Binary Search with multiple values

    If your code added a number that was already in the tree then your code has a bug. A while back I posted some code snippets on sorting. One of …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Binary Search with multiple values

    A binary tree stores data in sorted order (if you traverse the tree as left-middle-right). As such there is no reason to have the same value stored in more than …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in How to Format TextBox Value into two Decimal Places Visual Basic 2010

    You could use FormatNumber(x, 2) where `x` is the value you wabt to format and `2` is the number of decimal places.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in visual studio 2017 load last solution problem

    Possibly, but I expect it will come with new bugs that will need correcting. Then again, Visual Studio has had a problem with templates since VS 2012. It's still there …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in error in SqlDataReader . can someone help me.. Thank you in advanced

    What error are you getting and on what line?
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    If it's being used interactively (as in while the chars are being typed) then it can't work. For example, to enter the number `123.45`, each of the first three digits …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    I gave you the regex that does what you want. Presumably your problem is translating it into a string that will work in java for which I am unable to …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Well, DUH!

    And possibly apologetic. There is a joke about how two Canadians argue over a parking spot. "You take it!" "No. You take it!." And in southern news, in Virginia, the …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Well, DUH!

    Because of the many different cultures in Canada it's hard to say what "Canadian" culture is. I guess the best word would be "inclusive". A few years ago, PM Harper …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in visual studio 2017 load last solution problem

    For those of us who learned our craft in the 60s/70s, this kind of complaint mkes me both laugh and cry. "When I was a kid we had to walk …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in C++ question on alternating sums

    Easily done but you should consider... 1. We don't do your homework 1. We don't appreciate it when you revive/hijack an old thread 1. You really need to read the …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Need help for restaurant billing system

    It worked when I tried it.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Compaq laptop not starting, but power light is on

    I have a Presario X1050, the laptop just froze on me all of a sudden, the screen went a little weird on me with waves going from one side to …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Skype Update July 2018

    You'd think so but I have noticed, especially at the cottage, that Skype can go offline even though I am online. Possibly a DNS problem.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Created vbScript - Create a Log File Using vbScript Classes

    vbScript - Create a Log File Using vbScript Classes Before I retired I was responsible for most of the corporate data plumbing at our control centre. All of the plumbing …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Skype Update July 2018

    >I always thought that was a bad idea from a privacy point of view. I always have my online status set to invisible but that's not what I mean. I …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Skype Update July 2018

    There is also no longer any indicator, either on the toolbar icon or at the bottom left of the GUI as to the online/offline status.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited Skype Update July 2018

    It wasn't bad enough that Skype nagged me with "your current version will soon stop working" every time I brought up the GUI. When I ignored the upgrade requests is …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Skype Update July 2018

    Forgot one "improvement". In the previous version, in a conversation, text that I received was left justified against the left margin. Text that I sent was also left justified, but …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Created Skype Update July 2018

    It wasn't bad enough that Skype nagged me with "your current version will soon stop working" every time I brought up the GUI. When I ignored the upgrade requests is …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Edited American Megatrends!

    Hi, I have a little problem with my PC. This 'America Megatrends' screen pops up unpredictably when playing/using my computer. Is there a way I can stop it from popping …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Manupilating a string in PHP

    >Am a complete duffer when it comes to regex. So was I until about a week ago. By coincidence I had just finished working through Beginning Regular Expressions by Andrew …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Gave Reputation to JamesCherrill in Manupilating a string in PHP

    Are you quite sure its `\((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),.*` and not `\((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),\s*(and|or\)),\s*?\((.+?),\s*(.+?),.*` ? (just kidding, but it's a great example of why regex syntax is someone's attempt at a joke that backfired with …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Manupilating a string in PHP

    Actually it can be shortened (yeah, right) to \((.+?),\s*(.+?),\s*(and|or)\),\s*\((.+?),\s*(.+?),\s*(and|or)\),\s*\((.+?),\s*(.+?),.* which breaks down to \( opening `(` (.+?), shortest string up to `,` (group $1) \s* 0 or more spaces (.+?), …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Manupilating a string in PHP

    If you use the regular expression \((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),.* and a replacement string of \($1[$2]\) $3 \($4[$5]\) $6 \($7[$8]\) then you get what you want except that `and` & `or` will be …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Help with vb.net basic database connection, adding, deleting for ONE user

    >I am trying to create a database. I want to add records to it, delete records, and find records. That's pretty much what anyone who creates a database wants. Before …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    Since I do not use java and can't test it locally, I suggest that you work on just the regular expression and test it in one of the free, online …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in vb.Net - Regular Expression Tester

    Newer version also displays detailed information of matches, groups and captures in listview details format.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    I tried to account for differing dialogs by using `[0-9]` (which is standard) as opposed to `\d` (which is not) but, oh well.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    I can't test it in Java but it works the way you want in vbScript and vb.Net. My pattern clearly states "zero or more digits before a decimal point".
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    I guess java doesn't have a `raw string` capability like python. I used [Regexper](https://regexper.com/) to generate the graphic.
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Memorable Quotations

    There's no present like the time. - From The Second Best Exotic Marigold Hotel
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    >So this doesant allow numbers only letters.... and more than 1 decimal point....?? How did you get that from what I posted? What I gave you evaluates as ![2018-07-16_173811.jpg](/attachments/small/3/1bfd9615b136eb0f1f2fa7c2dd0318c6.jpg "align-center") …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in vb.Net - Regular Expression Tester

    Another useful tool is [Regexper](https://regexper.com/) where you enter a regular expression and it displays it in railroad diagram style. For example, a Mastercard credit card number pattern ^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$ displays as …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Replied To a Post in Reguler Expression (regix) problems

    What you want is 0 or more digits `^[0-9]*` followed by 0 or 1 decimals `\.?` followed by 1 or more digits `[0-9]+$` which gives you ^[0-9]*\.?[0-9]+?$ Coincidentally, I had …
  • Member Avatar for Reverend Jim
    Reverend Jim

    Created vb.Net - Regular Expression Tester

    vb.Net - Regular Expression Tester Every now and then I find another use for a regular expression. For those not familiar with regular expressions, they can be as cryptic to …

The End.