I have 2 versions of MS Office installed.
When I use createobject("excel.application") the last version is opened.
But I want the previous version to be used for Automation.
How to specify the version of Excel (or Word) to be used for Automation?
When I uninstall the last version, the previous...
As of today UrlDownloadToFile API for downloading from MS OneDrive does not work anymore. Instead of the requested file a HTML page is downloaded telling to update your browser.
This was known for not updated versions of Windows 8, but as of today this happens too in Up to date Windows 10 and...
Laptop Full HD (1920x1080) and Window 10 or 11 scales to 125%.
So VFP(6) IDE is 1536x864 virtual pixels, still 1920x1080 hardware pixels. Resulting in blurry characters in IDE, but I can live with that.
Working on a program/form that I want to scale itself. Like 125% too or 140%, whatever...
Easy question: How to get the form width and height?
I don't mean thisform.width or thisform.height
These properties don't return the dimensions of the form as it was designed. They return the dimensions at runtime.
Example: I create a form 1400 pixels wide and compile the program to an EXE...
Ever needed a Lostfocus event/method on an Optiongroup control? Well, there is no.
But you can simulate it in this way:
Put the Optiongroup inside a Container control with BorderWidth=0, making the Container invisible.
The Container has a Lostfocus event firing when the Optiongroup is losing...
I noticed some odd behaviour with the forms moved method that I can't explain.
When I minimize a form with the MinButton I want VFP to go to the taskbar, not above the taskbar, with the instruction
_screen.windowstate=thisform.windowstate in the Resize method. That works fine.
But when I put a...
AGETFILEVERSION(ArrayName, cFileName)
I have downloaded some files where the manufacturer/developer has made a mistake in the version details of the file properties.
The File Version is 87 (being the last version) but the Product Version mistakenly still reads 86.
I mean it actually states 87...
I still develop programs in version 6 of VFP.
Today I noticed something strange. I created a form with an OleDragOver/OleDragDrop object on it.
In the development environment, the vfp IDE, everything worked fine as expected.
But in the compiled executable the Drag and Drop did not fire. Even...
Yesterday Windows 10 version 1803 was released.
Today I updated 3 computers, two 32-bit and one 64 bit to this new Windows 10 version.
VFP ran fine except one thing. The preview instruction of a report, like:
set printer to name (printername)
report form (reportname) preview in window...
To clarify my question I'll give an easy example:
I made a small MYPRG.PRG that takes a report name as parameter to do some stuff with that report:
parameter repname
create table dummy (name c(10))
insert into dummy values ('Jack')
insert into dummy values ('Jill')
report form (repname) to...
Hi Guys,
I thought this was something easy: alter the behaviour of the Close box, the "X" in the upper right corner of a form.
I want to minimize the form instead when the user clicks the X (or maybe do something else no matter what).
I have a Quit button elsewhere on the form with a "Release...
I have a program that starts Internet Explorer and navigates to a certain website to do some stuff. (never mind what)
All worked well in XP, Vista, 7 and 8.
It also works well in most Windows 10 implementations. But not all. I have 7 times Win10 installed on testmachines and end-user systems.
2...
I was programming a little today and I stumbled upon an unexpected problem:
I have a form with a grid. In the grid there is a click event. Doesn't matter if its grid.click or grid1.column1.text1.click.
The table of the grid is in workarea 1, but the currently selected workarea = 2 (with select...
In the help file of VFP6 and VFP9 it states:
Maximum # of characters per character string or memory variable is 16,777,184.
That's 16 MB right?
I have a file xxx.yyy sized 75 MB
When I perform this command: content=filetostr('xxx.yyy')
then len(content) shows 78,643,200
and...
Hi Guys,
I want to do a drive search for specific files using a recursive Adir() call.
But the 'D' parameter for directories also selects so called symlinks made with the DOS-command MKLINK /D.
In fact symlinks are aliases for an other real folder.
To prevent double results I need to skip...
Last year I had a question on automation of IE9 (and up) within VFP.
http://www.tek-tips.com/viewthread.cfm?qid=1730710
ieo=createobject("InternetExplorer.Application")
ieo.navigate("https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&ru=http%3A%2F%2Fwww.ebay.com%2F")
ieo.visible=.t.
do while...
I want to set the focus and the cursor in a specific inputbox of a website. Example Ebay's login.
In a VBS script that will work with something like this code:
Set ie = CreateObject("InternetExplorer.Application")
ie.navigate...
I often want to share some data, not necessarily a DBF, but for instance a MEM file or a TXT file between users over the internet or for distributing new versions of the EXE file from an application. Users must be able to upload and download files. I don't have a paid website or webspace. I'm...
I want to control an IP Camera from within a VFP Form.
I have several arrow images on the form with mousedown and mouseup events. e.g.
MouseDown
thisform.olecontrol1.DecoderControl(6) && keeps moving the camera to the left until......
MouseUp
thisform.olecontrol1.DecoderControl(1) && stops...
Hi guys,
I try to retrieve the filenames from an FTP site with FTP-commands.
I have the component Microsoft Internet Transfer 6.0 SP6 on my form. (msinet.ocx)
In Visual Basic 6.0 this works:
With Inet1
.URL = "ftp://myftpsite.com"
.UserName = "emailaddress@myprovider.com"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.