Results 1 to 8 of 8

Thread: save command

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    35

    save command

    Hello everyone.

    I want to get the save command.One friend has told me that it is something like Fileopen ( ) but i don't know what is.

    This question has asked for sure but because i am with a dial up i don't have
    time,sorry for that
    The worst programmer ever

  2. #2
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: save command

    ??? the save command can be anything from saving to a file to saving to a database. in each case the logic is different and so is the technique according to the amount and type of data u want to save.

    please be specific on what you want to save and where.

  3. #3
    Member Max bayne's Avatar
    Join Date
    Jul 2006
    Location
    Egypt
    Posts
    59

    Re: save command

    plz specific what do you want to can help you man okk

    you can save data from Database , Registry , Files and more ..........

  4. #4

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    35

    Re: save command

    I want when the user clicks the save command button the programm will save the programm everywhere the user want i have already put
    VB Code:
    1. cdl.Filter = "Exe Files(*.exe)|*.exe"
    2. cdl.DialogTitle = "Save"
    3. cdl.ShowSave
    and i need the last command

    i hope you understand
    The worst programmer ever

  5. #5
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: save command

    what is the user saving to an exe???

    does your app create an exe?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  6. #6

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    35

    Re: save command

    No the form1 will be saved as an exe
    i tell it again this time better
    In fact i ve got a programms with text.When i close the programm the text of the text
    is again blank.That's why i need it,so the user save the form1 everywhere he want to i
    can open it with the text written
    The worst programmer ever

  7. #7
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: save command

    well. you can save the form as an exe from code?

    anyway I think this is what you want.

    User types data in a text field... then closes the program
    when opened.. the text is back in the field?

    VB Code:
    1. Private Sub Form_Load()
    2.     If Len(Dir(App.Path & "\data.txt")) <> 0 Then
    3.         Open App.Path & "\data.txt" For Input As #1
    4.             Text1.Text = Input(LOF(1), 1)
    5.         Close #1
    6.     End If
    7. End Sub
    8.  
    9. Private Sub Form_Unload(Cancel As Integer)
    10.     Open App.Path & "\data.txt" For Output As #1
    11.         Print #1, Text1.Text
    12.     Close #1
    13. End Sub
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  8. #8

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    35

    Re: save command

    Thanx but in the case of 5 text boxes ?
    And something in the end of text it has two black II
    The worst programmer ever

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width