Beginner VB

Moderators: None (Apply to moderate this forum)
Number of threads: 1233
Number of posts: 2978

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Menu buttons! Posted by cathy on 4 Apr 2002 at 2:03 PM
Hi!
I need some help with a few menu buttons could someone please help me with code for the following menu buttons Im trying to make?!
Undo is
datCustomers.Recordset.Update
so whats Redo??
Also, Id love to know how to cut, copy & paste?
I need to know how to print the users form and how to make a help file!!!

I know this is asking a lot but if someone could please tell me where to find the code or tell me the code itd be great!!
Thanking everyone in advance,
Cathy.

PS: Most of the form is connected to a database called datCusomers!

Report
Re: Menu buttons! Posted by hobby on 5 Apr 2002 at 8:42 AM
: Hi!
: I need some help with a few menu buttons… could someone please help me with code for the following menu buttons I’m trying to make?!
: Undo is
: datCustomers.Recordset.Update
: so what’s Redo??
: Also, I’d love to know how to cut, copy & paste?
: I need to know how to print the user’s form… and how to make a help file!!!
:
: I know this is asking a lot but if someone could please tell me where to find the code… or tell me the code… it’d be great!!
: Thanking everyone in advance,
: Cathy.
:

I'm not clear on the redo part, but the other stuff I can help with.

To Cut, Copy text do this:
Clipboard.setText sText
To Paste:
text1.Text = Clipboard.getText
Just when you cut, then set the text to vbnullstring (i.e. cut from a textbox, is copying the text from it, then erasing what's in the textbox)

To Cut, Copy data do this:
Clipboard.setData oData
To Paste:
Object = Clipboard.setData
This would be used for, like images and such.

The help files are pretty simple. They are just Word documents and each topic is a separate page. You index them and set the titles and IDs with footnotes. Then you open the document in the Windows Help Workshop (it comes with VB). If you don't have it, check the 'net. Footnotes are :
# - ID name used in Help Workshop
$ - Title of help topic
K - Indexed words used for searching
Set the footnote tags at the beginning of the topic and save to RTF.

: PS: Most of the form is connected to a database called datCusomers!
:
:

Report
Re: Menu buttons! Posted by cathy on 6 Apr 2002 at 2:12 PM
Thanks for ur help
the code I was told for "undo" is:
datCustomers.Recordset.Update
where datCustomers is the database the command is undoing!! eg undoing a changed record etc...
so, based on that I was woundering if there is similar code for redo?
Thanks for the cut/copy/paste code and the help with the help filr..... but is there a way to apply the cut/copy/paste code to a database?? Just woundering!
Thank you!
Cathy. :)

: : Hi!
: : I need some help with a few menu buttons… could someone please help me with code for the following menu buttons I’m trying to make?!
: : Undo is
: : datCustomers.Recordset.Update
: : so what’s Redo??
: : Also, I’d love to know how to cut, copy & paste?
: : I need to know how to print the user’s form… and how to make a help file!!!
: :
: : I know this is asking a lot but if someone could please tell me where to find the code… or tell me the code… it’d be great!!
: : Thanking everyone in advance,
: : Cathy.
: :
:
: I'm not clear on the redo part, but the other stuff I can help with.
:
: To Cut, Copy text do this:
: Clipboard.setText sText
: To Paste:
: text1.Text = Clipboard.getText
: Just when you cut, then set the text to vbnullstring (i.e. cut from a textbox, is copying the text from it, then erasing what's in the textbox)
:
: To Cut, Copy data do this:
: Clipboard.setData oData
: To Paste:
: Object = Clipboard.setData
: This would be used for, like images and such.
:
: The help files are pretty simple. They are just Word documents and each topic is a separate page. You index them and set the titles and IDs with footnotes. Then you open the document in the Windows Help Workshop (it comes with VB). If you don't have it, check the 'net. Footnotes are :
: # - ID name used in Help Workshop
: $ - Title of help topic
: K - Indexed words used for searching
: Set the footnote tags at the beginning of the topic and save to RTF.
:
: : PS: Most of the form is connected to a database called datCusomers!
: :
: :
:
:

Report
Re: Menu buttons! Posted by hobby on 8 Apr 2002 at 7:44 AM
To Cut/Copy/Paste from and to a database, you'll probably have to use the Windows Clipboard as an inbetween. For that just load the database into the form (like how you are already doing) and update your records. If you have C/C/P programmed into the form you can load a field into a textbox (like fName) and use the Copy/Paste command on the textbox and then update the database.

If you are using a flexgrid, then create a textbox that appears over a cell you click on and that has the contents of that cell in it's text property. Then you can edit the textbox and when finished, set the contents of the flexgrid cell to the new contents of the textbox.

Hope that helps. If you need code, post a msg.

: Thanks for ur help
: the code I was told for "undo" is:
: datCustomers.Recordset.Update
: where datCustomers is the database the command is undoing!! eg undoing a changed record etc...
: so, based on that I was woundering if there is similar code for redo?
: Thanks for the cut/copy/paste code and the help with the help filr..... but is there a way to apply the cut/copy/paste code to a database?? Just woundering!
: Thank you!
: Cathy. :)
:
: : : Hi!
: : : I need some help with a few menu buttons… could someone please help me with code for the following menu buttons I’m trying to make?!
: : : Undo is
: : : datCustomers.Recordset.Update
: : : so what’s Redo??
: : : Also, I’d love to know how to cut, copy & paste?
: : : I need to know how to print the user’s form… and how to make a help file!!!
: : :
: : : I know this is asking a lot but if someone could please tell me where to find the code… or tell me the code… it’d be great!!
: : : Thanking everyone in advance,
: : : Cathy.
: : :
: :
: : I'm not clear on the redo part, but the other stuff I can help with.
: :
: : To Cut, Copy text do this:
: : Clipboard.setText sText
: : To Paste:
: : text1.Text = Clipboard.getText
: : Just when you cut, then set the text to vbnullstring (i.e. cut from a textbox, is copying the text from it, then erasing what's in the textbox)
: :
: : To Cut, Copy data do this:
: : Clipboard.setData oData
: : To Paste:
: : Object = Clipboard.setData
: : This would be used for, like images and such.
: :
: : The help files are pretty simple. They are just Word documents and each topic is a separate page. You index them and set the titles and IDs with footnotes. Then you open the document in the Windows Help Workshop (it comes with VB). If you don't have it, check the 'net. Footnotes are :
: : # - ID name used in Help Workshop
: : $ - Title of help topic
: : K - Indexed words used for searching
: : Set the footnote tags at the beginning of the topic and save to RTF.
: :
: : : PS: Most of the form is connected to a database called datCusomers!
: : :
: : :
: :
: :
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.