Categorie: Programmeren

Interpreting XML Feed in Visual Foxpro

Looking for ways to interpret XML files I stumbled on this article at the foxite.com forum. This was still way too difficult in my opinion. So I used the methods and created some lean code that does what I want in far less code. This piece of progra… more »

Read web content to a file

A function to read a webpage's content into a (cached) file. UrlToFile.prg LPARAMETERS tcRemote * URL reader from Fox Wiki site: http://fox.wikis.com/wc.dll?Wiki~ReadUrl~VFP * Accept URL * Return cached filename * Note: file gets deleted after fi… more »

Calculate Week number correctly in Foxpro (Visual Foxpro)

Better Week() function for Foxpro because default Week() function returns wrong week numbers. more »

VFP: Make sure a procedure file has been opened

Simple VFP solution to make sure a procedure file has been "loaded". more »

Foxpro return focus to previous active program

:oops: Update: This doesn't work. Only on my development system with VFP 9.0 running :oops: Today I created a popup screen to identify the calling party to our staff. Downside was that their work on hand was interupted because the popup captured the f… more »

Een betere pagina refresh (verversing)

Je kan een internet pagina zichzelf laten verversen met een meta http-equiv refresh als volgt: <meta http-equiv="Refresh" content="20" URL="Pagina.html"> Hiermee wordt de bezoeker na 20 secondes doorgestuurd naar Pagina.html. Als je een bepaalde p… more »

Hide Mouse Cursor in Visual Foxpro (VFP)

Today I needed to hide the mouse cursor for a presentation program. Objects in VFP have a MousePointer property with which you can select the appearance of the cursor. 0 for default Windows behaviour, 1 to 17 for specific shapes like arrow (1) or hourgl… more »