-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run-time error '13': Type mismatch #10
Comments
Hi there! It looks like Assuming the ViewModel property is a Note, I'm still not convinced writing a MVVM framework in VBA is the best idea... thinking twinBASIC could be what we're missing to make this happen (without needing to import hundreds of classes in a VBA project). At this stage MVVM in VBA is very much at proof-of-concept level, I wouldn't push to use it for real production work (although that could be very cool!) |
Hello @retailcoder, 😊. Thanks for the quick feedback. Well I didn't notice that with the In other order of thinking maybe you are right abought VBA -> and the MVVM pattern maybe it should be done as a Library, How would you advise or do such a complex project (see further down)? If you have a little time to investigate the concept of the project what I'm trying to achieve in excel, Back then I didn't know anything about OOP or how could I write some concepts more efficiently. It is really hard to find some good tutorials/examples in VBA for my case, that can be maintained easily for future changes. That is may real problem because the project pointed in this message works and currently used in production, |
I downloaded your project (and added myself as a watcher on your repository), I'll have a look and come back here with my findings. MVVM in VBA is definitely very very much an experimental thing, but it should be possible to incrementally refactor your existing working code into a more OOP design like Model-View-Presenter. The central idea is always the same: separate the data from the rest of the code, then isolate and abstract away & inject/set the dependencies from the outside. I'm not promising anything, but do you mind if I go ahead and refactor your code and then write a blog post (or series) about the refactoring process, showing the thought process and explaining the code changes along the way? |
@retailcoder Wow, thank you. 😌 That would be awesome to read about! Looking forward to read about it. You made my Day, awesome!!! Thanks |
Hello @retailcoder , I hade some other projects ongoing so I hade no time to investigate further this problem. Could you please advise how can the Validation type mismatch error be fixed? Thanks for your reply. |
Hello, If I want to implement a validation to ComboBox control
and have the following error: Run-time error '13': Type mismatch on this line when it evaluates to TRUE:
BindPropertyPath:
RequiredSelectionValidator Class:
Any suggestions?
The text was updated successfully, but these errors were encountered: