Google Answers Logo
View Question
 
Q: VB6 program Additions and Changes to an existing question - Theta or anyone! ( No Answer,   8 Comments )
Question  
Subject: VB6 program Additions and Changes to an existing question - Theta or anyone!
Category: Computers > Programming
Asked by: kristalys-ga
List Price: $200.00
Posted: 13 Sep 2005 10:46 PDT
Expires: 22 Sep 2005 17:54 PDT
Question ID: 567617
hello - i am posting a continuation/elaboration of a question i had
asked on here previously, however, for some reason i cannot get
clarification to it/post comments further on the old thread- something
wrong with google? so i figured i'd start another question.

The original google answers thread is located here? 
http://answers.google.com/answers/threadview?id=558788
this should give some background to the question, but I need some
additions/alterations to the program (since my boss was so impressed
with this program that I had intended to use just for myself to make
the mindless calculations faster, he?s decided to ask me to see if a
more in depth program can be made now).

After reading the above thread, which was solved by theta ? and I
greatly appreciate it and great work! The program is now needing some
more assistance.  There are a few more parts I need to add to it.

I am attaching a layout I made that is now the full version I need to
be coded.  Theta?s code works, but needs to now be changed a little to
work with the new layout/more machines.

Here are the additions to the program I need now ? 

First off, I have added a MainMenu form ? this main menu is sort of
like a switchboard to choose from the different machines (named red,
blue, green, yellow, vis0vis15, or calculate all at once).  When the
user clicks on one of the machines, it will then take you to the
corresponding form (i.e. user clicks on ?Red? and the program opens up
the RedCalc.frm, ?Green? opens GreenCalc.frm, Vis0,Vis15 opens up
VCalc.frm, etc?). These are now additions to the original machine and
they are pretty much repetitive except for a few areas, which I will
point out after I clarify some other things?

First, with the VCalc.frm open, the user needs to enter the ?file
prefix?.  I am attaching also an actual file from a machine (no more
*.txt ?  ), this time it?s formatted as a slave.transmission file (if
you can?t open this type of file, open it with notepad ? if the
program will not work with this by itself, you might have to write
some code to make it convert to a .txt or something).  However, since
I just found out the other day there is confusion between machines,
because they all dump into the same C:\pl folder, I needed to add a
prefix to the file.  The machine runs series of tests, and then spits
out the data in sequences ? 00000, 00001, 00002,
00003.slave.transmission, however, as I last posted, this got
confusing and overwriting started occurring, so when I started a run
on the machine I had it prompt the user for a prefix to the file. 
This is something I made up.  Theta has the idea in the program
written, however, it isn?t going to be behind the scenes - the user
needs to input it (see form for idea).  For example, if I ran a
sequence with the machine and saved all the data from that run as
?RunA?, the machine will name every run after that
RunA.00000.slave.transmission, RunA.00001.slave.transmission,
RunA.00002.slave.transmission, and so on? So now, I need to call up
only RunA data, because RunA data is situated in C:\pl with RunB data,
and maybe RunC data or thisfile data, etc? (please let me know if I
need to clarify on this ? it?s probably pretty confusing)
As for the next part, now that we can look only at the specified data
? for instance, ?RunA? data now, after the user types in ?RunA? and
hits Enter in the program, the program brings up the
RunA.00000.slave.transmission (if needed ? depending on machine) and
RunA.00001.slave.transmission (See Theta?s program for reference ?
except now this machine doesn?t require 0 and 15th files ? only 00000
and 00001, which will always remain static, which might be easier, no
more having to count 0 and 15s).  The CF file path is also listed for
the one used (the CF is different for each calculation).  The next few
labels/text boxes work like Theta?s program, with slight differences
between the machines.  The VCalc machine will be pretty much the same
as Theta?s set up, just making adjustments for using 00000 and
00001.slave.transmission (instead of the looped 0 and 15th files) and
also further dividing the answer by 100 for 00000 and 00001 answers ?
so instead of 5766.17307, we now have 57.66173 ? (the quotient need
not be divided by 100 as it will work itself out with the other two
sum of products being done so already).

The Green, Blue, Red, Yellow machines will not need to find the 0th
file (00000.slave.transmission), but will only need the Tau color
(which is really the sum of products of 00001.slave.transmission file)
and don?t forget to divide by 100.  The CF is going to be different,
instead of just CF.txt, each color has it?s own RedCf.txt or
BlueCf.txt, which is calculated with the file just the same.  And
instead of finding the quotient, we are now trying to find Q for each
color, which is the Tau color (sum of products with corresponding
color CF) divided by the Vis15 file from earlier.

As for the UVB, UVA ? this is a whole another calculation in its
entirety.   the calculation is as follows for these.
UVB= the sum of products of the %t*CF divided by the sum of all CFs
together for UVB and likewise for UVA, except with UVA?s CFs.  Please
see the UVBcf.txt and UVAcf.txt for the cf?s matched with their w?s. 
don?t forget to divide by 100 for the sum of products!

And lastly, I need this program to have a save, print, view function,
and return to menu option.  These are more flexible.  The save
function and view function will work hand in hand.  My idea is maybe
having the save function, when clicked save each data to an excel
spreadsheet, i.e. it might list in columns (see excel spreadsheet
?DataStorage.xls?) maybe have the program come with its own folder? So
that way if we have to transfer it from computer to computer it can be
carried from each. And another idea, maybe have the red calculations
have its own spreadsheet of red calculations, and the CalculateAll
keeps track of all the numbers together?  This part is pretty much
just I need the stuff on DataStorage, and however is the best way to
display it.  I?m thinking that maybe displaying it by choice of color
and/or All calculations is a good idea.  Feel free to modify my forms.
Or maybe have a form that imports the excel spreadsheet or makes use
of it?  So that you don?t have to have excel running all the time. 
However is the best/easiest way to keep track of data and storage it,
this would be great.  I have also attached an excel file that would
show what information I would like displayed.
The print function on the individual pages maybe just give a printout
of each of the color data when asked, and then all the data for
?AllCalculations?, and excel can take care of its own printjob.
And the view function ? maybe just a button that will bring a page up
that shows the data in excel.  If anyone else has any better setups i
welcome hearing them.

Thanks so much for your help ? I am also enclosing an excel program
that has the answers for everything except for the UVA and UVB ? I?ll
have to add those later ? still working them out by hand.   Thank you
again ? good luck.  I?m trying to finish this by/before Friday the
16th of September 2005 if possible (hence the $200 max price again)
thanks!

Clarification of Question by kristalys-ga on 13 Sep 2005 11:13 PDT
here are attachments... 
this is a sample layout of how i would like it to look - but feel free
to modify the print, view, save buttons to best fit the program...

http://rapidshare.de/files/5060838/Project1.vbp.html 

what needs to ultimately be displayed - and maybe an idea for showing
all the calculations

http://rapidshare.de/files/5061037/DataStorage.xls.html

Cf files...
Vis0&Vis15 = http://rapidshare.de/files/5061440/cf.txt.html
Red = http://rapidshare.de/files/5061504/RedCf.txt.html
Blue = http://rapidshare.de/files/5061482/BlueCf.txt.html
Green = http://rapidshare.de/files/5061585/GreenCf.txt.html
Yellow = http://rapidshare.de/files/5061601/YellowCf.txt.html
UVA = http://rapidshare.de/files/5061613/UVAcf.txt.html
UVB = http://rapidshare.de/files/5061621/UVBcf.txt.html

2 Actual runs from a machine - "'transitionssw' prefixed"
http://rapidshare.de/files/5061813/transitionsw-light1.00000.Slave1.Transmission.html
http://rapidshare.de/files/5061855/transitionsw-light1.00001.Slave1.Transmission.html

ok - well i think i've attached pretty much anything and everything i
can for now - i'll get back with the answers to the blanks on UVA and
UVB later - but for now everything else is here.  let me know if i
missed anything and good luck - thanks!

Request for Question Clarification by hammer-ga on 14 Sep 2005 10:59 PDT
Kristalys,

You uploaded your vbp, but the frm (Form) files. Please upload these files also:
VCalc.frm
MainMenu.frm
RedCalc.frm
BlueCalc.frm
GreenCalc.frm
YellowCalc.frm
UCalc.frm
Form1.frm

- Hammer

Clarification of Question by kristalys-ga on 14 Sep 2005 19:56 PDT
i will gladly do so in the morning - my files are at work - thanks
again for taking a look at it -k.

Clarification of Question by kristalys-ga on 15 Sep 2005 03:53 PDT
VCalc.frm
http://rapidshare.de/files/5121122/VCalc.frm.html
MainMenu.frm
http://rapidshare.de/files/5121148/MainMenu.frm.html
RedCalc.frm
http://rapidshare.de/files/5121159/RedCalc.frm.html
BlueCalc.frm
http://rapidshare.de/files/5121171/BlueCalc.frm.html
GreenCalc.frm
http://rapidshare.de/files/5121183/GreenCalc.frm.html
YellowCalc.frm
http://rapidshare.de/files/5121191/YellowCalc.frm.html
UCalc.frm
http://rapidshare.de/files/5121196/UCalc.frm.html
Form1.frm
http://rapidshare.de/files/5121203/Form1.frm.html

Request for Question Clarification by hammer-ga on 15 Sep 2005 05:27 PDT
OK, now I've got the Forms, but none of them have any existing code.
As you are asking to add on to an existing project, I would expect to
find Theta-ga's original programming in the forms. Are you sure you
uploaded the current files?

- Hammer

Clarification of Question by kristalys-ga on 15 Sep 2005 07:37 PDT
yes - you are correct - they are forms only - since i have made a
layout of how i would like the forms/program to look.  theta's program
is a basis of where the calculations start, but there are some changes
that i needed - as listed in the description, so i did not cut and
paste the code, thinking it may cause confusion, so it should be a few
blank forms to show the layout.  also - theta uses a loop in the
program made - since before it counted the 0th and 15th files... this
new program is simpler - does not need to count these files, so i'm
guessing no loop is needed, but instead a call up of the file prefixed
and the *.00000.slave1.transmission file and the
*.00001.slave1.transmission file or however is simpler to get the job
done - i'm not very good at programming stuff - hence the postings. 
theta's program works and does achieve the calculations by changing
the corresponding cf files, but does not adapt to this new environment
where the prefix is needed (i'm working with multiple files, different
sequences in this new setup).

Clarification of Question by kristalys-ga on 15 Sep 2005 07:37 PDT
final data calculations as done by hand produce for the two missing ones...
    UVB	             UVA
-1.241470458	-1.02238798

Request for Question Clarification by hammer-ga on 15 Sep 2005 08:05 PDT
It would still be helpful to have the original code, if it is available.

- Hammer

Clarification of Question by kristalys-ga on 15 Sep 2005 08:16 PDT
here you go - here's the original program as made by theta (the
lastest version), however the mask idea is good, but not what i was
looking for...
http://rapidshare.de/files/5039692/DataProcessor1.1.zip.html

Clarification of Question by kristalys-ga on 15 Sep 2005 08:18 PDT
if you change the data set to the one i have provided in here under
the .transmission files and use the cf files, the calculations will
come out to be correct.  however, they files have to be renamed to be
00000.txt and 00015.txt and stored in C:\pl in order to work and with
the cf file - it's all located in this thread about it
http://answers.google.com/answers/threadview?id=558788

Request for Question Clarification by theta-ga on 16 Sep 2005 01:29 PDT
Hi kristalys-ga,
  Saw your message in the previous thred. 
  Note that the functionality required is much more than your previous
program, and will not be implementable by your Friday deadline.
  If that is ok with you, I can begin work on this, and will get back
to you with any further clarifications that I may need.
Regards,
Theta-ga
:)

Clarification of Question by kristalys-ga on 16 Sep 2005 04:57 PDT
hi theta - it's ok - yah the friday deadline isn't necessary - it was
just a hope, but wasn't required.  thanks a bunch :)

Request for Question Clarification by theta-ga on 16 Sep 2005 07:45 PDT
Hi kristalys-ga,
  I am unable to download thew files
cf.txt,red/blue/green/yellowcf.txt and the Project1.vbp files from the
website. Could you reupload them and post their links here.
  Better yet, zip all the files and post a link to the zip file here.
Thanks,
Theta-ga

Clarification of Question by kristalys-ga on 16 Sep 2005 08:00 PDT
here ya go -

http://rapidshare.de/files/5166426/stuff.zip.html

i put pretty much all the forms that go along with the vbp file, and
all the cf's.  let me know if you need anything else :)

also - to clarify the last part with the print/save/view since it was
pretty much mumbo jumbo and i talked it over with my boss.  the
print/save on each individual section "red calculation" "blue
calculation" , etc... we were thinking it'd be best to print the
current color's calculation, and save each/storage each as a file in
excel, in case they wanted this individual option so, blue only prints
blue's information (for the different runs), while the "calculate all"
tabulates every color/uv and storages all in an excel and prints
all/views all.  thanks so much again!!!

Clarification of Question by kristalys-ga on 20 Sep 2005 06:52 PDT
hi!  hope all is well - let me know if the zip file was ok - wasn't
sure if i got everything, but i think i did.  thanks!  let me know if
i can clarify or need to send anything else over :) thanks again -k.

Clarification of Question by kristalys-ga on 22 Sep 2005 07:27 PDT
I have rewritten this in a more concise, easy to read word document,
in case all this got fuzzy trying to figure it out, especially having
to refer to the old post... please check it out here... and let me
know if need anymore - thanks :)
Revised and easier to read (i hope!)
http://rapidshare.de/files/5398643/RevisedIdea.doc.html
Answer  
There is no answer at this time.

Comments  
Subject: Re: VB6 program Additions and Changes to an existing question - Theta or anyone!
From: hammer-ga on 14 Sep 2005 09:43 PDT
 
Kristalys,

All your links go to a web hosting advertisement.

- Hammer
Subject: Re: VB6 program Additions and Changes to an existing question - Theta or anyone!
From: kristalys-ga on 14 Sep 2005 10:32 PDT
 
please check bottom where it says "free download" - that's where you
should be able to find it on rapidshare.de to download attachments
Subject: Re: VB6 program Additions and Changes to an existing question - Theta or anyone!
From: theta-ga on 16 Sep 2005 02:37 PDT
 
Oops!
Sorry hammer-ga, i didn't notice your later posts in the clarification thread.
slow net :(

Theta-ga
:)
Subject: Re: VB6 program Additions and Changes to an existing question - Theta or anyone!
From: hammer-ga on 16 Sep 2005 05:14 PDT
 
Theta,

It's all yours. Go ahead and work on this. I was only looking at it
because you didn't seem to be picking it up and she had an upcoming
deadline.

- Hammer
Subject: Re: VB6 program Additions and Changes to an existing question - Theta or anyone!
From: kristalys-ga on 16 Sep 2005 06:39 PDT
 
good luck, and let me know if you need anymore information.  don't
worry about the friday deadline - that is lifted, i got an extension
on it since i can still work on it manually.  thanks again :)
Subject: Re: VB6 program Additions and Changes to an existing question - Theta or anyone!
From: kristalys-ga on 20 Sep 2005 07:54 PDT
 
$75 tip if anyone can get this by Friday :D  Hoping to have it working
by next wednesday - that's my goal thanks :)  good luck
Subject: Re: VB6 program Additions and Changes to an existing question - Theta or anyone!
From: kristalys-ga on 22 Sep 2005 05:29 PDT
 
extend tip to monday 9/26/05 - hoping to throw calculator/by hand
method of calculating this out the window soon :) thanks - let me know
if you need any more information/how's it going
Subject: Clarification/easier to read
From: kristalys-ga on 22 Sep 2005 07:31 PDT
 
I have rewritten this in a more concise, easy to read word document,
in case all this got fuzzy trying to figure it out, especially having
to refer to the old post... please check it out here... and let me
know if need anymore - thanks :)
Revised and easier to read (i hope!)
http://rapidshare.de/files/5398643/RevisedIdea.doc.html

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy