Search:

Type: Posts; User: jpbro

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: VBRichClient5 cCollection ItemExists Question

    The bug is due to a logic error in the string comparison code of the .ItemExists method. It returns True whenever an item that *doesn't* match the passed value is found, instead of returning True...
  2. Re: VBRichClient5 cCollection ItemExists Question

    Looks like a bug. I've found the source of the problem and I will report it to Olaf, thanks for posting the question and test code!
  3. Re: Questions about adding a new collation using vbRichClient5

    For Q2:



    Option Explicit

    Private Sub Command1_Click()
    Dim lo_Cnn As vbRichClient5.cConnection
    Dim lo_Cnn2 As vbRichClient5.cConnection
  4. Re: Questions about adding a new collation using vbRichClient5

    Here's a test you can try for Q1:



    Option Explicit

    Private Sub Command1_Click()
    Dim ii As Long
    Dim lo_Cnn As vbRichClient5.cConnection
  5. Replies
    1,300
    Views
    42,385

    Re: Corona virus, China major city lockdowns, etc.

    test
  6. Thread: Read a JSON file

    by jpbro
    Replies
    5
    Views
    237

    Re: Read a JSON file

    Daniel - correct me if I'm wrong, but I thought you were using RC5? If so it can serialize/deserialize JSON to/from cCollection classes using New_C.JSONDecodeToCollection or...
  7. Replies
    18
    Views
    681

    Re: Shutting Down VB 6.0

    ??

    177850
  8. Replies
    5
    Views
    503

    Re: Help with Window Functions (SQLite 3.28)

    Hi Chris - sorry for taking so long to get back to you on this, and thank you for all your help.

    I've temporarily given up on using Window functions, as I just couldn't get them to work. Not a...
  9. Replies
    11
    Views
    519

    Re: sqlite: Database seems to be corrupted

    I'm afraid it's really bad news if you don't have a backup. Unless Google is mangling the DB at the link you sent me, it clearly looks like Google HTML code for their login page:

    Result in...
  10. Replies
    11
    Views
    519

    Re: sqlite: Database seems to be corrupted

    I took a look at the file you sent - it appears to be an HTML document, not an SQLite database. When I open it up, it looks like a Google login page.

    Just a hunch: does your app grab your...
  11. Replies
    11
    Views
    519

    Re: sqlite: Database seems to be corrupted

    Also - were you using a password for the database, and if so - are you sure you are still using the same password to open it?
  12. Replies
    11
    Views
    519

    Re: sqlite: Database seems to be corrupted

    Can you post the database file, or does it contain private information?
  13. Replies
    5
    Views
    503

    Re: Help with Window Functions (SQLite 3.28)

    Hi Chris, thank you for the response.

    I like the idea of creating an integer only sort idea - I imagine it would improve performance so I'll give it a try against my old/slow SQL, but it's not...
  14. Replies
    5
    Views
    503

    Re: Help with Window Functions (SQLite 3.28)

    Apologies - I made a mistake with my requirements for #3 and #4, so if you read those requirements please note that they have changed.
  15. Replies
    5
    Views
    503

    Help with Window Functions (SQLite 3.28)

    For some background - I've been wanting to learn how to use SQLite's new-ish Window Functions feature, and I have finally gotten around to it with a real-world candidate statement to work and compare...
  16. Replies
    5
    Views
    413

    Re: DELETE the last carriage return

    LOL - Yikes! I guess that's what happens when you don't get a full night's sleep for almost 4 months. Thanks for the correction.
  17. Replies
    5
    Views
    413

    Re: DELETE the last carriage return

    Lots of ways to skin this cat.

    1. Append your CRLF characters *after* RS.MoveNext, and only if Not RS.EOF.

    2. Trim the last CRLF *after* the loop using Left$(TESTO, Len(TESTO) - 2)

    3. If...
  18. Replies
    4
    Views
    416

    Re: VB6 activeX exe on Wine

    You can register an ActiveX EXE by executing it with the /regserver parameter. E.g.:



    yourexeName.exe /regserver
  19. Replies
    17
    Views
    1,031

    Re: Redesign of Resource Editor - Suggestions

    I understand not wanting to roll your own icon/bitmap editing feature, but how about allowing users to shell out to an external editor for each file type and automatically replacing the resource when...
  20. Replies
    4
    Views
    399

    Re: Access Vs Sqlite

    10 seconds is surprising, but your code does have some inefficiencies. How about using a Command object wrapped by a transaction?

    NOTE: I haven't tested the code below, so please run it against a...
  21. Replies
    31
    Views
    963

    Re: Date values as const?

    Does not compute.
  22. Replies
    6
    Views
    387

    Re: Form Icon and X button

    Setting the ControlBox property to False removes the Icon, but also removes the X/Close button instead of disabling it. Maybe that's close enough for your needs?
  23. Re: PropertyBag vs Collection (and what's the internal structure of a PropertyBag?)

    Yikes, that PropertyBag Add time is ugly, but the Read time is impressive. Quite a difference!

    For those of you that don't mind using a third-party library, the RC5 cCollection performs nicely:
    ...
  24. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    26. There's a small bug in the way RC5 widgets handles focused buttons with the Default property = True.

    When a cwButton has focus and its Default property = True, pressing the Enter key once...
  25. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Thanks for the example - I was indeed doing the operations against the underlying cRecordset, but I was calling rs.Delete in a loop instead of collection IDs and then using an SQL DELETE to clear...
  26. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    25. This is more of a note to self/other newcomers than a question/issue. If you let Widget.LockRefresh = True and Widget.Enabled = False, you must subsequently let Widget.Enabled = True,...
  27. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    24. Sorry, another cwGrid/cwVList question. This one is related to performance. When I'm performing lots of deletes on an underlying RS datasource and setting the related Selected(index) property to...
  28. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    20. cwGrid doesn't allow column resizing when AllowColumnSizing = True?

    21. Is there a way to put widgets inside cwGrid cells? e.g. cwDropDownList, cwButton, etc...? I currently do this with...
  29. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    dupe
  30. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Sorry my use of "often" was inaccurate, it just so happened that the first call I tried was ByRef (the dx and dy in cCairoContext.DrawTextCell). So no problems there then, it looks like other methods...
  31. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    19. The VList.OwnerDrawItem event has dx and dy parameters as Singles but it cCairoContext methods take Doubles (often ByRef) which forces us to call CDbl() on dx and dy before passing them. Should...
  32. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Q17 was indeed my fault - in the VList.OwnerDrawItem method I was calling CC.TextOut with a Y value of 3 and not taking this into account in my RowHeight calculation so it looked off vertical center....
  33. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Understood, and it's not a critical issue or anything so no rush to look at it. Just a bit of "friction" vs. my typical workflow, but nothing insurmountable.




    OK I'll take a closer look at...
  34. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    16. Similar to question #15 re: blocked keys like Ctrl+Tab/F5 in Break/Debug mode - if an RC5 form has been show vbModal, Ctrl+Break pauses on the .Show line and some keypresses are blocked. The...
  35. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Your in-IDE work-around performed perfectly, thanks Olaf!
  36. Re: User confirmation to close an application with sub-forms

    Just spitballing - Does MDIForm_QueryUnload happen before the other forms are unloaded? If not, maybe passing your MDIForm object to the owner parameter when calling SubForm.Show will help?
  37. Replies
    38
    Views
    1,303

    Re: vbWidgets/RC5 UI Questions "Megathread"

    Just added question #15:

    A bit of friction - Pressing Ctrl+Break when an RC5 form is visible but "idle" takes you back to the Cairo.WidgetForms.EnterMessageLoop line and some keyboard combos are...
  38. Replies
    34
    Views
    5,991

    Re: VB6 Automated Source Code Processing Helper

    So /u is a flag for unicode support, which VBPCRE2 can handle by setting the compile options .UTF8 property to False. In order to handle \uXXXX notation, we also need to set the compile options...
  39. Replies
    34
    Views
    5,991

    Re: VB6 Automated Source Code Processing Helper

    Do you mean "\u" or "/u"? See this snippet from the pcre2syntax man page on "\u"



    If PCRE2_ALT_BSUX or PCRE2_EXTRA_ALT_BSUX is set ("ALT_BSUX mode"), the following are also recognized:

    \U ...
  40. Re: Text parser written in VB6 are thousands of times slower than JavaScript.

    I think a copy of your source text is being made from your class property for each CharCodeAt call. If you pass m_sSource instead of oParser.Source, then the speed improves dramatically.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width