ArchiveApril 2005

Backspace in VFP

Thanks to Amit for alerting me to the fact that my backspace solution didn’t work for the mouse event. Turns out that the solution is still simple but involves using KeyPress aswell as Valid. Simply add a new property (eg bAllowBackspace) to your textbox baseclass and then throw the follow code in KeyPress and Valid events KeyPress() LPARAMETERS nKeyCode, nShiftAltCtrlIF nKeyCode = 127...

CodeCampOz

Updated: I had the wrong MSDN link – fixed nowI write this from CodeCampOz which has been a fantastic event. For a ‘free’ event it has been remarkably smooth and well organised. (The event itself is free, you only have to get and stay here (Wagga) so travel and accomodation is the only cost.)The weekend has focussed on Visual Studio 2005 Beta 2 (released just a few days ago and...

Do not fill out the VFP survey!

Did you know that Microsoft are conducting a big survey about VFP?It only takes about 3 minutes and you go into the draw to win a ticket to Devcon or a cassh prize. Too easy.But the less people who fill out the survey, the less entrants in the draw and thus the better my chances of winning. So I encourage you to ignore the great help this will be to the product and how it will enable Microsoft to...

INSERT into a view on joined tables in VFP

You can insert and delete records on a view that is a join of two tables.Not sure why I thought you couldn’t do this but I got myself confused over views. I thought you could only insert into views on a single table.But you definately can insert and delete on joined tables. In my case its on a 1:1 join. I need to investigate if this is the case with 1:M tables too…

Stop backspace in VFP

Here’s a tip Scott Scovell informed me of regarding a non-standard VFP behaviour:‘I had a request from a client to prevent the textbox from losing the focus when they use BACKSPACE. When removing details from a textbox using the BACKSPACE key, focus was being transferred to the previous textbox and they (more often then not) began to remove details from that textbox as well. Windows...

Binding to VFP9 System events

Here’s a link to Scott Scovell’s whitepaper and code from the Sydney VFP UG last weekhttp://www.svfpug.com.au/assets/2005Mar/Scott%20Scovell%20-%20Binding%20to%20Windows%20Message%20events.zipScott is our Chief Software Architect at TalmanSee also the UG sitewww.svfpug.com.au

Archives