Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying controls _clipWhat
Message
From
04/03/2013 06:08:32
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01567008
Message ID:
01567348
Views:
152
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform