Search results

  1. A

    How can I retrieve a files Size On Disk from Windows?

    @DickyP : I suspect the preliminary check whether files/folders fit on another medium/volume. I had a similar issue decades ago.
  2. A

    How can I retrieve a files Size On Disk from Windows?

    It should also be noted that, at least on NTFS volumes, very small files may be stored directly in the MFT and therefore do not occupy a single extra cluster: See Windows Confidential: Just What Is ‘Size on Disk’? and/or How can a file's size on disk be 0 bytes when there's data in it?
  3. A

    Solved Windows 11 Slow Opening Forms

    You load the image for each form from a file every time? You could place it into the Image Gallery once for the current project and put a reference there into every form. I would give it a try. See this answer from a well known forum member which belongs to that Image Gallery. :)
  4. A

    Solved Windows 11 Slow Opening Forms

    If I understand this point correctly the windows of the modules in the VBE open visually one after the other and that takes some seconds over all? This behaviour I know well. The VBE will open all windows that have been opened in your last session. If that are many it takes some time. What I...
  5. A

    Solved Windows 11 Slow Opening Forms

    @ListO : Your problem is that forms open too slow, correct? - Does this also happen when the form is not bound to any data (table/query)? - Do you have any code in form-Open and/or -Load event procedure(s) which could cause this behaviour? Try to skip those code and test. If it only happens...
  6. A

    Solved Problem with class factory

    You have to set the `VB_PredeclaredId` attribute of the class `cls_EditImovel` to `True` to support calls like `Set novo = cls_EditImovel.Create(2)`. This attribute can only be set by first exporting the class to a text file in the VBE. Then edit it with a text editor and change the value of...
  7. A

    Warning when using Hexadecimal values in VBA.

    Did you ever read about data type characters? You have the possibility to use them to give your constant values a specific datatype, so that the automatism of VBA can be overwritten: ?&HFFFF, TypeName(&HFFFF) -1 Integer ?&HFFFF&, TypeName(&HFFFF&) 65535 Long
  8. A

    Decrypt Encrypted Password

    It could be a difference in the encoding of your password. Your stored procedure uses NVARCHAR, in your test you use VARCHAR. That results in different bytes which are sent to HASHBYTES I expect (have no time for tests right now), so the result between both calls can vary.
  9. A

    Decrypt Encrypted Password

    The author of the article uses a different character as an apostrophe than you do.
  10. A

    Decrypt Encrypted Password

    @sonic8 : Please take into account, that @TheSearcher uses a salt additionally, at least that's what it looks like, as he has listed it in his exemplary table. So assuming that this salt is concatenated to the users password before hashing, VBA would need to read this salt if it should...
  11. A

    Ensure releasing/closing of a handle without losing err-state in case

    Me too, very powerful, clean and good to maintain. Regarding your sample about parametrized constructors: I like to use static classes in VBA having a public method named `Create` which then can be feeded with parameters and returning a new instance of 'itself' or in more detail returning it as...
  12. A

    Ensure releasing/closing of a handle without losing err-state in case

    Thanks for your reply Josef. I would prefere a real finally block there, that would make life easier. :) I guess I will find places in code where I used it before then, in case I can't remember. ;) Oh, I do so, mostly, as I wrote, but sometimes for what reason ever do not. Maybe old code...
  13. A

    Ensure releasing/closing of a handle without losing err-state in case

    I've been looking for some time for an elegant way to definitely release/close a handle (to a file or similar) in the event of an error and at the same time ensure that the Err object does not lose its current error status. If my code is in a separate class, I can use its destructor...
  14. A

    Null Delimited with Octothorpes and Null Propagation Returns "Null"

    @riktek : I didn't read all posts here yet, but regarding to your procedure in your opening post: If I call it in the Immediate Window like this: `?TypeName(TestNullVariant())` it returns `Null`, so it definitely does not return a string, but type `Null`.
  15. A

    Add a "Thread starter indicator"

    Maybe with some fiddling and usage of this? xenforo.com/community/threads/thread-starter-op-indication.54453/
  16. A

    Add a "Thread starter indicator"

    This Add-On supports different ways of making the indicator visible. I would prefer this one (marked red):
  17. A

    Add a "Thread starter indicator"

    Hi all, in some forums around the web there is an indicator in postings of threads (similar to the `Staff member' badge), stating that the user is the thread starter. I like this badge because I can instantly see if a posting is from the starter of the thread or not, especially in longer threads...
  18. A

    Solved Reading ANSI encoded files

    I couldn't quite figure out from your dialog whether the problem has been solved or not, but here would be a quick and easy VBA solution for 'displaying' the content: Public Sub TestPbfFile() With New ADODB.Stream .Type = ADODB.StreamTypeEnum.adTypeBinary .Open...
  19. A

    Solved Closing a form from the Form_Load event

    Did you try to alternatively use the forms 'Open' event instead and set its parameter 'Cancel' to 'False' in case?
  20. A

    T-SQL Encryption function sought -

    But then with a salt that none of the participants knows, otherwise they could try to create and compare hashes themselves using the names involved...
Back
Top Bottom