dcsimg

Search:

Type: Posts; User: jpbro

Page 1 of 13 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    11
    Views
    178

    Re: Weekday returns wrong result

    I think Weekday returns the day of the week as a count from the first day of the week. So any Tuesday on a system where the first day of the week is Monday will return 2. When the first day of the...
  2. Re: Add KeyDown event for pure API TextBoxW (no Subclassing)

    You were clear, sorry I wasn't :) I'm saying Ctrl+A works for me to select all with Olaf's code right out-of-the-box with no modifications. I was just wondering if your TextBox had the "Select All"...
  3. Re: Add KeyDown event for pure API TextBoxW (no Subclassing)

    I tried with Olaf's code linked in your first post here: http://www.vbforums.com/showthread.php?841559-RESOLVED-Strange-problem-about-Lavolpe-s-Unicode-TextBox&p=5126167&viewfull=1#post5126167
    ...
  4. Re: Add KeyDown event for pure API TextBoxW (no Subclassing)

    @dreammanor - I just tried the code in the first link you provided in the original post, and Ctrl+A selects all text already without any modifications required?
  5. Replies
    25
    Views
    692

    Re: Text Search Ideas?

    Bummer - I tried to get any kind of regex working with ITextRange.FindText, but nothing worked for me either (not even with Krool's RTB wrapper). Maybe it is Word only after all.
  6. Replies
    25
    Views
    692

    Re: Text Search Ideas?

    The FindText method of the TOM ITextRange object seems to support regex search - maybe that would do that trick? See the tomMatchPattern flag comments (haven't tried it myself though):...
  7. Re: Index makes only a tiny performance improvement

    Does it perform any better if you include the ExplorerSort collation in the index creation? e.g.



    sql = "create index if not exists idx1 ON EXPLORER_LIST ( EXPLORER_ITEM_TYPE COLLATE...
  8. Replies
    17
    Views
    937

    Re: Creating a new Command Button

    If you call DrawButton in the UserControl_Paint event, you need neither DoEvents nor UpdateWindow.
  9. Replies
    15
    Views
    266

    Re: [RESOLVED] Clipboard adding to existing text

    The problem is that in the first example you were just doing CR twice, not CRLF and in the second example you were doing LFCR instead of CRLF. If you had done : Chr$(13) & Chr$(10) then you would...
  10. Replies
    15
    Views
    266

    Re: Clipboard adding to existing text

    Try this:



    Dim l_Clip As String

    l_Clip = Clipboard.GetText
    Clipboard.Clear ' Clear before setting clipboard text
    Clipboard.SetText l_Clip & Chr$(13) & Chr$(13) & "XYZ"
  11. Replies
    6
    Views
    327

    Re: VB6 Command Line Compilation on Windows 10

    I don't know if this will work for either of you, but I also once had a problem with running the vb6.exe from the command line. It would still work, but it was very very slow (taking 5-6 minutes to...
  12. Re: Adding a parameter to existing sorting function

    Can you post some full sample code that populates an array and attempts to sort it with the current routine. That makes it easier to experiment with for any of us that would like to help.
  13. Re: No troll. What are the (legitimate) reasons people are still using VB6 ?

    The whole thread could probably be summed up with this statement as well! Maybe we're onto something with the whole cheese thing...
  14. Re: No troll. What are the (legitimate) reasons people are still using VB6 ?

    I was sitting here perusing this thread when I suddenly came over all peckish.


    https://www.youtube.com/watch?v=Hz1JWzyvv8A
  15. Re: How to sort file names exactly as Windows Explorer does

    Glad my example worked well for you :)



    The Debug.Assert is there to break out of runtime if the code reaches that line. If that happens it means we haven't handled a case and that means we...
  16. Re: How to sort file names exactly as Windows Explorer does

    "Collations" are what SQLite (and probably other databases) use to sort text values. By default it is BINARY, but you can also use NOCASE (for something like vbTextCompare) and RTRIM (which is the...
  17. Re: How to sort file names exactly as Windows Explorer does

    If you are using SQLite through vbRichClient5/RC5 then everything you need is described in post #2.

    If you are using some other SQLite wrapper, then it might have a way to register your own...
  18. Replies
    7
    Views
    319

    Re: how do i extract these strings

    Split the whole list on vbNewline, then loop through that array and use Instr to check for the "|" character for each element. If "|" is found, then split on "|". Get element (1) from the resulting...
  19. Re: search and split strings into list1 and list2

    OK, your project is still a mess and I still think that is part of your problem. If you get your house in order, you'll have a better chance of accomplishing your goal.

    Against my better...
  20. Re: search and split strings into list1 and list2

    Removed Dupe
  21. Re: search and split strings into list1 and list2

    What is the "sports" string, I don't see that in your snippet, and it's the first time you've mentioned it.

    To change the "Vertical" string you can simply type a new string, no? For example:


    ...
  22. Re: Design Question? Interface usage in .NET advantages, appy theory in VB6 apps

    I'm probably missing something about your question and even about Interfaces in C# as I've only dabbled in that language, so I'm just speaking from VB6-land. Based on your comments re: creating an...
  23. Re: Design Question? Interface usage in .NET advantages, appy theory in VB6 apps

    Every public VB6 class in an ActiveX DLL is also an interface that can be implemented. So we have a lot of "interfaces" too, we just don't use them that way very often.

    But there's nothing...
  24. Re: search and split strings into list1 and list2

    OK I've had a quick look and I have a few comments before I dive into the code.

    First, you will help yourself immensely if you give your controls more descriptive names. "Text1", "Text2", "Text7",...
  25. Re: search and split strings into list1 and list2

    Looks kind of "OK" from there, so what's going wrong? What is the code for your GetStringBettwen function? You mention you want the results in "list1" and "list2" which would usually mean using...
  26. Replies
    12
    Views
    267

    Re: [RESOLVED] LEFT JOIN on multiple columns

    Glad it worked! In the future it would be a good idea to post a little in-memory database example using VB6 code like I did in order to help us helpers :)
  27. Replies
    12
    Views
    267

    Re: LEFT JOIN on multiple columns

    Looks like you can do it with multiple aliases JOINs too, which should be faster than sub-queries.



    Set r = c.OpenRecordset("SELECT L1.Vac_Name NAME_A, L2.Vac_Name NAME_B " & _
    ...
  28. Replies
    12
    Views
    267

    Re: LEFT JOIN on multiple columns

    I imagine someone with more SQL skill will have something a bit more clever up their sleeve, but you can use sub-queries to accomplish what you need (if my guess about your goal was correct):


    ...
  29. Replies
    12
    Views
    267

    Re: LEFT JOIN on multiple columns

    Here's code to generate the database and tables for testing in case anyone is interested:



    Sub Test()
    Dim c As New cConnection
    Dim r As New cRecordset

    Set c =...
  30. Re: search and split strings into list1 and list2

    What have you tried so far, and what's not working for you?

    If you haven't attempted anything yourself yet, here's a few hints: For "searching" the Instr function is appropriate, and for...
  31. Replies
    12
    Views
    267

    Re: LEFT JOIN on multiple columns

    What are you getting, and what are you expecting? Can you post a small example database/code that creates a small example database that demonstrates the problem?
  32. Re: search and split strings into list1 and list2

    What's the question?

    Your examples don't make much sense - searching for fighter should turn up more results that you've shown. Then how do you decide which results to add to List1? For example,...
  33. Re: VB6 Blockchain Public Key Crypto & Digital Signatures & _ $25 BTC Bounty When Sol

    Here's an updated version of the demo with better error checking and new features (such as a salted hash to ensure the message hash is always different, as well as the ability to verify the message...
  34. Re: Design Question? Interface usage in .NET advantages, appy theory in VB6 apps

    I use interfaces in VB6 code fairly frequently, I find them useful for implementing "plugin" like behaviour for classes. Interfaces have the added benefit of forcing the implementing class to have...
  35. Re: VB6 Blockchain Public Key Crypto & Digital Signatures & _ $25 BTC Bounty When Sol

    I'll try to knock up an example with better error checking/reporting shortly...Not sure what's going on there since I've tried the same steps multiple times and everything seems to be working, but a...
  36. Re: VB6 Blockchain Public Key Crypto & Digital Signatures & _ $25 BTC Bounty When Sol

    Ok weird, I just tried your steps and it is working fine for me here. If you change the line where you test for an empty hash to the following, can you copy & paste the text that appears in the debug...
  37. Re: VB6 Blockchain Public Key Crypto & Digital Signatures & _ $25 BTC Bounty When Sol

    I think the problem is that your bundle isn't unlocked properly. Try changing your code in the "keypair" module to this:



    Option Explicit

    Private glob As New ChilkatGlobal ' Put this at...
  38. Re: VB6 Blockchain Public Key Crypto & Digital Signatures & _ $25 BTC Bounty When Sol

    Just noticed a bug in the demo code I provided. In the cmdVerifyString_Click() event, the code for loading the public key should be changed to this:



    If...
  39. Re: VB6 Blockchain Public Key Crypto & Digital Signatures & _ $25 BTC Bounty When Sol

    +1 to the Chilkat recommendation. It's a great bundle for a reasonable price and the support has always been excellent when I've needed it.
  40. Re: VB6 Blockchain Public Key Crypto & Digital Signatures & _ $25 BTC Bounty When Sol

    I've modified your sample code to generate HEX private/public keys and I've included Sign & Verify buttons.

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



Featured


Click Here to Expand Forum to Full Width