Archive for April, 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, [...]
CodeCampOz
Updated: I had the wrong MSDN link – fixed now
I 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 [...]
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, [...]
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 [...]
Read Full Post | Make a Comment ( None so far )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 [...]
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 [...]
Read Full Post | Make a Comment ( None so far )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 [...]
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 [...]
Binding to VFP9 System events
Here’s a link to Scott Scovell’s whitepaper and code from the Sydney VFP UG last week
http://www.svfpug.com.au/assets/2005Mar/Scott%20Scovell%20-%20Binding%20to%20Windows%20Message%20events.zip
Scott is our Chief Software Architect at Talman
See also the UG site
www.svfpug.com.au
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 [...]
Read Full Post | Make a Comment ( None so far )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 [...]
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
Read Full Post | Make a Comment ( None so far )