[RESOLVED] Managing Complexity of Code in a One Form Application.
Hi there,
I’m still trying to get on top of my code or say better of the vast amount of it. My question this time is towards Public Functions which I would like to consolidate.
Meaning:That I have several Public Functions i.e. PhoneFormat, MobilePhoneFormat, BirthDateFormat etc. etc. which I would like to combine within ONE Public Funtion in a module maybe using a Select Case statements, calling the same as before.
Now my question is: Is this possible ???
Re: Managing Complexity of Code in a One Form Application.
Hi there,
Well, I have been trying as much as, but seem not to get ahead with this one. So it's out again to find some HELP.
Below I have attached a Zip file as simple as.. I know it's not pretty but I'm trying.
Re: Managing Complexity of Code in a One Form Application.
Originally Posted by Grimfort
What help do you require? People tend not to want to recode an entire project for someone, ask specific questions and you will get specific answers.
Did the first question not work ?
Hithere,
I can't say that I was NOT asking for a recode. I have gone by the first sugestion from "pnish" and set the little project up not using or trying it in my code before I was sure it would work. I also use your sugestion in not using ByVal fine. Now I'm showing you the code which I would like to use as is IF IT WOULD WORK.
I have been asking the last few days only some questions to get away from the vast amount in my project, but not to change my project with anybody's help but to reduce MY code. I have ask if it would be possible to do but not to rewrite or even to write any code for me, so it seems that your responce is not really fair at all. And by the way WE CAN"T BE ALL GURUS, but then some of them here on this site are GURUS with character, some of them with alot some of them with a little or none.
So if you one of the first THANKS IN ADVANCE if not well, thanks anyway.
Re: Managing Complexity of Code in a One Form Application.
Your correct, maybe my post was not fair. I have only read this one post from you so can not see your history, but it did sound like a "heres my project, it doesnt work" post. So I apoligise *me bows*.
VB Code:
Public Function DataFormat(ByVal InData As String, ByVal FormatType As FTypes) As String
'---
'--- Before these where just (str_One, str_Two, str_Three) as they where in separate Public Functions.