: : : : : : :
This message was edited by delljohnb at 2005-4-14 10:46:48
: : : : : : : : :
: : : : : : : : : Sub CreateForm()
: : : : : : : : : If IsNothing(frmMyForms) Then
: : : : : : : : : Redim frmMyForms(0)
: : : : : : : : : Else
: : : : : : : : : Redim Preserve frmMyForms(UBound(frmMyForms) + 1)
: : : : : : : : : End If
: : : : : : : : : Set frmMyForms(UBound(frmMyForms)) = New frmMyDBFrom
: : : : : : : : : frmMyForms(UBound(frmMyForms)).Show
: : : : : : : : : End Sub[/code]
: : : : : : : : : You would probably add some code to set the properties of the new form, and also change it's content to fit the database.
: : : : : : : : :
: : : : : : : : : DjSpirit, in all forms[/grey]
: : : : : : : : :
: : : : : : : : DjSpirit,
: : : : : : : : Thanks guy, er ah Gal (??)
: : : : : : : : What I'm tryin to do is nothing like we were taufgt in college... Purchased 3 books, (one was vb for dummies( don't laugh)) and am still pretty lost.....
: : : : : : : : anyhow
: : : : : : : : Thanks Heaps
: : : : : : : :
: : : : : : : :
: : : : : : : :
: : : : : : : You could always have an array of say 10 strings (or any number you want for that matter), then parse out the strings to remove everything after the "." then run a loop to force this shortened value into the form properties.
: : : : : : :
: : : : : : :

: : : : : : :
: : : : : : : assuming you have the names in an array called FutureFormNames(1..10) :
: : : : : : :
: : : : : : : for counter = 1 to 10
: : : : : : : DotFound=0
: : : : : : : for counter2 = 1 to len(FutureFormNames(counter))
: : : : : : : if mid(FutureFormNames(counter),counter2,1)="." then DotFound=counter2
: : : : : : : next counter2
: : : : : : : FutureFormNames(counter)=left(FutureFormNames(counter),DotFound-1))
: : : : : : : next counter
: : : : : : :
: : : : : : :
: : : : : : : Maybe somebody knows a quicker way, but this might be a nice little add in you can use. You only need to loop through FutureFormNames(x) and you can reset what you want.
: : : : : : :
: : : : : : :
: : : : : : :
: : : : : : :
: : : : : : :
: : : : : : :
: : : : : : Better yet...set up an array of records where you keep a consistant setup and store this in a text file...you can then read in the text file and parse out all the data contained in the file. You main script would stay the same, but you could change all the "changing values" by simply editing the text file, then uploading that to your site.
: : : : : :
: : : : : :

: : : : : :
: : : : : :
: : : : : :
: : : : :
This rambling of yours has very little to do with the original question, your solutions is not particularly well thought through, and the question has already been properly answered. Need you go on with this? It mostly serves to complicate and confuse matters.
: : : : :
: : : : : DjSpirit, puhleeze
: : : : :
: : : :
: : : : ah.....ok...
: : : :
: : : : sorry you feel like your toes got stepped on.
: : : :
: : : : Wow...things have changed around here in the last couple months.
: : : :
: : : : (rolling eyes)
: : : :
: : : :
: : :
: : : LOL
: : :
: : :
http://www.programmersheaven.com/c/authorpage.asp?AuthorID=17409
: : :
: : : BTW...I was on my second "PC" in 1982.
: : :
: : : My post to this "old skool" programmer was written in generic locic code that he would understand from his "old Fortran days". I assume that you haven't had the thrill of writing Fortran code on punch cards using binary conversion of ASCI character numbers....try that, then look at my suggestions and see if they seem rambling...
: : :
: : : In 1982 (your birth date) I was a Junior in High School. Oh...and I had a Fortran class in 1982.
: : :
: : : I was trying to be helpful, and I don't appreciate your disrespectful comments.
: : :
: : :
: : :
: :
Sorry that I went at you like that, it's just that the question was already answered and the code you suggested seemed, hmm, not the modern way of doing things, especially when the user had already mentioned that he was using a database, mixing arrays and such into the solution more than neccessary would only lead to more complexity, with no actual gain.
: : I have as you said not much of coding things into punch cards, but as fortran is programmable in most high level languages I suppose I have done some fortran indirectly. I am familiar with ASCII encoding and know the workings of the touring machine, I also enjoy a bit of assembly from time to time, and also a know a thing or two about electronics.
: : I do believe that experience counts, however seniority doesn't always mean more experience, and more experience doesn't always yeald better solutions. I do admire older people, but not because they are older, admiration comes by display of skill, knowledge and wisdom.
: :
: : I will say I'm sorry about the outburst, but I will not admire you, as of now anyway.
: :
: : DjSpirit, FAEBFE
: :
: Quite correct. Things have changed over the years, I made a suggestion to him in a way thay would be familiar. While the "traditional" way of programming may not seem intuitive to younger programmers (I use the term "younger" loosely here), it certainly has it's place. The traditional imbedded "for loop" with use of global dummy variables is something that the poster will be quite familiar with.
:
: That familiarity eases transition into the "modern" programming theory of local variables and stacked objects. Local variables used to be considered sloppy programming.
:
: I see my suggestions as assisting the poster in giving usable code logic in a language that he is not comfortable with.
:
: BTW...while global variables are frowned upon now, they were generally required in the "old days". Total compiled code and data blocks could generally not exceed 64k. You HAD to re-use variables because any local declared variables in functions/procedures (especially global functions/procedures!!!) grabbed memory but would not release it. MTX was the onlylanguagethat I have used that never really had a problem with that. Oh...and the highest number you could use ANYWHERE was 32768....but I digress...
:
: Don't get all stressed over programming approaches that you disagree with or don't understand the reasoning. There are many ways to skin a cat, and all the stress will do is make you go bald like me.
:
:

:
: Resp.
: John "delljohnb" Baugher
: Sr. Programming Developer
: CFC
:
: Glad you two got things settled, thoutht I might have to recomend swords at 20 paces.... thanks again guys...
I will probably have a hundred other problems before I finosh this...
mchkin
:
:
:
: