Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying controls _clipWhat
Message
De
04/03/2013 06:08:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01567008
Message ID:
01567348
Vues:
153
>Hi Segio, glad it helped you. I needed to reboot my computer and Windows gracefully took more than an hour to restart, so I took my lunch and when I came back my computer was still being "patched", so I went to another one and look at the issue of getting the filename from the clipboard and is dead easy with foxtools, you probably already figured this out, but just in case this was my code
>
>
>#define _FoxProW_RPT90 49625 
>
>local lcFileName
>
>SET LIBRARY TO HOME() + "Foxtools.fll" ADDITIVE
>
>lcFileName		= null
>IF OpenClip(_SCREEN.HWnd)
>	lcFileName		= GetClipDat(_FoxProW_RPT90)
>endif
>
>CloseClip()
>
>return lcFileName
>
>
>[Update]Mmmm, not good, should not have said dead easy, right Jim?, need to check GetClipDat, if there is no data for this format lcFileName is .f. (also it seems as I got confused with the number for the format before?
>
>[Update 2]
>This might be better:
>
 	lcFileName		= Iif(isClipFmt(_FoxProW_RPT90), GetClipDat(_FoxProW_RPT90), null)
>
>[/Update]


Hi Hugo
(Follow up)

This worked just great!
Only thing I had to do is change define statement to match what I am getting from
Inside clip tool

so i/o
# define _FoxProW_RPT90 49625  
I run InsideClip and see what Format Id I get and then supply this value inside #define statement

Bad News:
I found that this This constant varies from machine to machine ?

Very Very Good News! :)

I found that you can very easily 'cheat' VFP to accept more copy records inside clipboard buffer (which is ordinary tmp cursor).
I did it already by duplicating records which were already in clipboard. VFP pasted them as if they were original copy records!

Now I have to play little bit more with this 'Trojan horse' technique {g} to get it more clever and convert
FRX content into (very simple) scx content. It will be very close to what I originally wanted.

Thks+++++ once again :)
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform