i need to code a program to help me in my everyday job, i own my own business and this will help me with my sales.
its a very simple program, and i cant figure out how to get my multiple textboxes to write to a new .txt file. i can only get it to do 1 line at a time.
I have textboxes. named txtDate, txtCarrier, txtLocation, txtDateEmpty, txtDestination, txtQuote, txtPhone, txtFax, txtEmail.
I want the "txtDate" textbox to be autofilled with the current date and time of the user input, which is started on the next textbox.
the rest of the textboxes are going to be user input.
then when the user is done entering data into the multiple textbox's they would click a button "add" or something to that sort.
then those text box entries including the "txtDate" would be written to a new .txt file.
in this format,
Quote
all on the same line.
and when the "add" button is clicked, the multiple textbox fields clear all the data previously entered.
and is ready for another user input.
after the 2nd set of user input is entered, and "add" button is pressed, it would add(append) another line to the same txt file previously written.
example:
Quote
"Date2 - Carrier2 - Location2 - DateEmpty2 - Destination2 - Quote2 - Phone2 - Fax2 - Email2 "
then the previously filled text boxes would be empty again, and ready for input 3. and with this you would be able to add countless lines over and over of user input.
ok, also when the program launches
I want a msg txt box to pop up and ask.
"Where is the Load Origin?" then the user would input data and click enter
Another Msg box would pop up and ask "Where is the Destination?"
Next "Pick Up Date"
then "Deliver Date"
and last would be "Notes"
and all that data that was entered into the msg box's will Be at the top of the txt file like a header .
example :
Quote
"Date - Carrier - Location - DateEmpty - Destination - Quote - Phone - Fax - Email "
"Date2 - Carrier2 - Location2 - DateEmpty2 - Destination2 - Quote2 - Phone2 - Fax2 - Email2 "
and in case the application is closed, and the user wanted to add another set of multiple text box entries to write to a txt file that has already been created. when the application launches, you could browse and selcet the txt file you want to continue to add to.
also
every time you open the application and start a new txt file, by entering in the data into the msg box's, it takes the info from "Pick up Date" and "Origin" and "Destination" and names the txt file that.
Example:
Quote
Example on how i would use the software.
I get a call from my customer that he has a load from Dallas TX to houston TX for pick up on 02-01-12 and deliver on 02-02-12.
I post this load on the online load board. and start receiving calls from truckers who are interested in hauling this load.
thats where this program comes in.
when i answer the phone i launch the program, enter in the load details in the pop up msg box's then it creates a txt file.
and than i start to talk to the trucker, and find out all the details to enter into the correct fields (textboxes). I find out the trucking company's name and contact and enter it in the "txtCarrier" textbox.
after i fill all the textbox's accordingly. i click add.
and i keep this program running, and when the next trucker calls i enter in that truckers info also. and repeat until i have a nice list to reference, and select the trucker with the cheapest price.
and if i have another load in addition to the dallas houston load, i just open another instance of the application and enter in the different details for that particular load.
so i can have 5 loads or 10 loads posted on the load board, and 10 applications running, and tab to the different instances for each new call.
would i like to put it in a excel file rather then a txt file? sure. but really i just want something that i can use.
::i just realized:: the form box name should change to the load details that were entered into the msg box, so that the user can differentiation between the instances. and know which instance is linked to which created txt file
I know its a long shot to get this program created. i have been trying for a few days now, and am still stuck , with little progress done.
if anyone can take the time to help e with this i would greatly appreciate it.
and i thank all of you in advance for the help.
-Matt

New Topic/Question
Reply



MultiQuote







|