Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying controls _clipWhat
Message
 
To
01/03/2013 07:51:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01567008
Message ID:
01567285
Views:
121
>Hi Hugo :)
>
>This is great tip! Exactly what I hoped I would find !
>And it is perfectly logical from VFP code standpoint. Copying controls in RD / FD is just copying records (FRX/SCX respectively)
>so they did what anybody practical would do; Dump those records into temp dbf and then copy from there.
>
>For my local use only I can probably do away just by retrieving whatever scx/frx data are in that temp folder and then
>using them in my own form builder class to create that frx content as form controls. What I described as ideal scenario earlier
>(making it work both ways and be part of something like Thor) is probably much much more work.
>
>But hey this is a great start !
>
>Thks+++ Everybody

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]
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform