Jump to content

what - did - I - do - today - program

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
lordwittie

lordwittie

    Newbie

  • Members
  • PipPip
  • 17 posts
hi,

I am working a program for a little company. They want a small program where you can enter your name, project you've been working on, the date, the start time and the end time. Here's a screenshot of how I made it look:
Posted Image
This is the basic.

I already made a code so the end time is automatically now, and date is today, etc. But now I have some problems with the most important part of the program: writing the information to somewhere.

I already tried writing it to an excel file, but that's not handy, and I already saw it's hard to close the excel file, etc. so this was no succes.

Now I want your help: What should I do?
I am thinking of a log inside the program, where the information would simply be added. Any suggestions are welcome! I would also like to be able to sort the log on date, name, etc...
I don't think keeping the information inside the program is possible, so I was thinking about writing it to a .txt, and at the start of the program, gathering it and putting it in the log. but I don't know if it's possible and how to start :lol:

any suggestions on how this can be done, are appreciated! (sorry for being so newb :p )

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
I would just save it in a .txt file, all that needs to be done it write the each value into a newline of the .txt file, then open the text file and read each line and restore the value's. I did this in one of my programs(but my program was in C#), you can see the thread here: Coderisland.com • View topic - Writing values into file.

This may also help:Convert C# to VB.NET - A free code conversion tool - developer Fusion - ASP.NET, C# Programming, VB.NET, .NET Framework, Java and Visual Basic Tutorials
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#3
lordwittie

lordwittie

    Newbie

  • Members
  • PipPip
  • 17 posts
thanks! but what should I use to display the information in VB? a listbox? I don't really like them :S I would also like the sort on function? with which object is this possible?
EDIT: I am trying with datagridview now

#4
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Um Im not sure im more of a C# guy, sorry.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#5
lordwittie

lordwittie

    Newbie

  • Members
  • PipPip
  • 17 posts
no problem, I found out a way to put all information in a grid! thanks for your help!
now it's just searching on how I can save changes made to it to the textfile...

#6
mirwanda

mirwanda

    Learning Programmer

  • Members
  • PipPipPip
  • 31 posts
open "somefile.txt" for output as 1
print #1, sometext, sometext, sometext
close 1

its vb6, if it isn't compatible, i can't help.