Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To ease drag and drop 2

Status
Not open for further replies.

german12

Programmer
Joined
Nov 12, 2001
Messages
563
Location
DE
Whenever I read a good article about VFP e.g. here I like it to store it
in a self-made data-table which consists of a title field (character-field) and a memo-field

structure of my table:
Field-name Type
--------------------------
Contents (character)
article (memo)

This means presently the following:

1.Mark all the lines of that article. (CTRL-A)
2.copy it into memory (CTRL-C)
3.open the foxpro-table with browse
4.append a blank record (CTRL-T) at the end of the table
5.open the memo-field of that blank record by double clicking the memo- field
6.drop the copied artikel into that memo field
7.close the table
8.When back in browse modus write the first line of the copied article (which is normally
the description of the article which was read.

As I do this manually so far, I am looking for a short program which could help to reduce
all these keystrokes I have to make, and therefore helps me to work faster.

Any ideas?

Regards
Klaus
 
Klaus

You could accomplish all you require within a click or other suitable event of a control, using _CLIPTEXT as the means of retrieving the data from the clipboard.

HTH

Chris [pc2]
 
HI
I cant give a full solution as of now. But a quick thinking to do part of the job automated.

1. One time command in the command window to create a myTekTips table.
CREATE TABLE myTekTips (cTitle C(50), cTips M)
2. Creat a tp.prg
USE TekTips
APPEND BLANK
REPLACE cTitle WITH _clipText, cTips WITH _ClipText
USE

From now onwards, log into tek-tips forum...
Select the tips you want to copy.. hight light area.. and .. Ctrl+C to copy into clipboard (All this you have to do manualy)

Now open the vfp
In the command window type
DO tp && and press enter

SO your dbf is updated.

I would suggest add the code.. BROW at the end of the tp.prg and type in your header to avoid surprises.

Alos, you can add this to a key label Alt+T..
ON KEY LABEL ALt+T DO tp and save that as your initial command in VFP.. you can still do it with a Alt+T key - under VFP.

Hope this helps you :-)

ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Klaus

The following idea might help and assumes you have selected your text and copied it to the clipboard

STRTOFILE(_CLIPTEXT,[temp.txt])
SELE MyTable
APPE BLAN
APPE MEMO article FROM temp.txt
lcTitle = MLINE(article,1)
USE IN MyTable
? lcTitle

Chris [pc2]


 
[americanflag]
Off topic, but when did all the new smileys get added? There are some real cool ones!
[lightsaber] Dave Dardinger
 
Hi Ramani, Chris

thanks you very much for the valuable tip - you had nearly the same idea (using _cliptext).
I would like to prefer a little bit more ramani's solution as it avoid's creating an
additional *.txt file but goes directly into my data-table. However both solutions I could live with as
they reduce the keystrokes rapidly.

Thanks very much.
I would like to give a star for this for both of you - however I can not find again how to do.....

Please advice.

Klaus


Thank you very much.
Klaus
 
Klaus

Immediately under your post on the left you will find:-

Click here to mark this post
as a helpful or
expert post!

Click on that and follow the dialog

HTH

Chris [pc2]

 
Except that he doesn't want to mark *his* post as helpful. he want's to mark *your* post as helpful. Newbies here often make that mistake of marking their own posts as helpful. Dave Dardinger
 
Dave

You're right, but the system won't allow you to mark your own post.

Immediately under your post on the left you will find...

should have been:-

Immediately under the person's post that you wish to mark on the left you will find...

Chris [pc2]

 
You are right, there isn't a space to mark my own posts. But if the system won't let you mark your own post, then why do I see this happening so often, even on threads where there's only one message, the original question? Hmmm. Could some people join twice? Still it wouldn't make much sense. Or has the softwhere been changed recently? Dave Dardinger
 
Dave

The system allows a question to be marked as a helpful or expert post, and thus could be marked by any member who considered that question to have such merit.

It may be the post marker felt that the question articulated something of which they were not able or confident.

Or has the software been changed recently?

No - not to my knowledge.

HTH

Chris [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top