<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.foxite.com/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DlanorOk @ FoxBlog</title><link>http://weblogs.foxite.com/dlanorok/default.aspx</link><description /><dc:language>es-EC</dc:language><generator>CommunityServer 2.0 (Build: 60217.2664)</generator><item><title>A BackSpace key Problem in FoxPro</title><link>http://weblogs.foxite.com/dlanorok/archive/2006/07/09/1966.aspx</link><pubDate>Sun, 09 Jul 2006 16:46:00 GMT</pubDate><guid isPermaLink="false">8827bd1c-7596-4a8f-b0de-f59ce9ede522:1966</guid><dc:creator>rorrmo</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.foxite.com/dlanorok/comments/1966.aspx</comments><wfw:commentRss>http://weblogs.foxite.com/dlanorok/commentrss.aspx?PostID=1966</wfw:commentRss><description>&lt;P&gt;Your customer and final user, is using by first time your application, write, add records, edit it, process data, etc. In a unafortunate moment, he need clear the content of ONE field (in a TextBox control) in the current form. When he begin to clear the field, using the backspace key; and comes to start of field, the cursor leap in a previous field and he look that, not only is cleared the required field value!, this also clear other fields!. Your user try undo it, but he can not do it. Then, a famous question is&amp;nbsp; ask you: Because this problem in you application?. You do'nt can say: "BECAUSE IT WAS MADE WITH VFP!"&lt;/P&gt;
&lt;P&gt;This is a Old problem (o will be a feature?) in FoxPro and D-Base Applications, that work with TextBox Control. You have a set of fields in your form and press many, many, the backspace key in the last field, then you look at it, and you have a new and clear form.&lt;/P&gt;
&lt;P&gt;To resolve the problem, in your TextBox base class, add the following code in the KeyPress Method:&lt;BR&gt;&lt;/P&gt;&lt;PRE&gt;LPARAMETERS nKeyCode, nShiftAltCtrl

*-- Control when you are using a mask input
lCondicion = .F.
nSelStart= This.SelStart 

*-- This is a validation when you are using a 
*-- Formatted Control
IF TYPE("This.Value")="C" AND nSelStart&amp;gt;0
	*-- Obtains the control current value
	cValue1 = ALLTRIM(SUBSTR(This.Value,1,nSelStart))
	
	nLen = LEN(cValue1)
	
	*-- Get a Empty Formatted value using the Control Input Mask
	cValue2 = ALLTRIM(TRANSFORM(SPACE(nLen),This.InputMask))
	
	*-- If the Empty Formatted value is equals to
	*-- control current value, you also need apply the feature!
	lCondicion = (cValue1 == cValue2)
ENDIF 

*-- If you're in the real selection start of value and
*-- the pressed key was the Backspace Key {127}, remove the key from buffer
IF (nSelStart&amp;lt;1 OR lCondicion) AND nKeyCode=127
	NODEFAULT 
ENDIF&lt;/PRE&gt;
&lt;P&gt;Now, run your form and press the backspace key. When the cursor comes to the begin of your control, it does not leap to another text controls.&lt;/P&gt;
&lt;P&gt;This code is valid for TexBox and ComboBox Controls. The problem has been not detected in the EditBox Control.&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=1966" width="1" height="1"&gt;</description><category domain="http://weblogs.foxite.com/dlanorok/archive/category/108.aspx">Visual FoxPro</category></item><item><title>Microsoft Visual FoxPro Sedna March CTP is now available!</title><link>http://weblogs.foxite.com/dlanorok/archive/2006/03/03/1253.aspx</link><pubDate>Fri, 03 Mar 2006 17:38:00 GMT</pubDate><guid isPermaLink="false">8827bd1c-7596-4a8f-b0de-f59ce9ede522:1253</guid><dc:creator>rorrmo</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.foxite.com/dlanorok/comments/1253.aspx</comments><wfw:commentRss>http://weblogs.foxite.com/dlanorok/commentrss.aspx?PostID=1253</wfw:commentRss><description>&lt;P&gt;In the last month end,&amp;nbsp;the Microsoft Visual FoxPro Team has released the first download for the &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=84E1ABAE-623C-4F63-AEB4-81C5053B5007&amp;amp;displaylang=en"&gt;"Sedna" Preview&lt;/A&gt;, this is a group of features that will be avaiable in the next version of&amp;nbsp;Visual FoxPro. This is a cool implementation of .NET 2.0&amp;nbsp;features in a component called NET4COM.&lt;/P&gt;
&lt;P&gt;The &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=2E8F1DEB-2972-4CEC-A7CA-E0991362A4FC&amp;amp;displaylang=en"&gt;Sedna&amp;nbsp;Feature&amp;nbsp;Overview&lt;/A&gt; documents&amp;nbsp;are also avaiable and includes&amp;nbsp;all this new features&amp;nbsp;(they&amp;nbsp;were released before).&lt;/P&gt;
&lt;P&gt;The announce was made by&amp;nbsp;Milind Lele, VS Data PM in his blog on &lt;A href="http://blogs.msdn.com/vsdata/archive/2006/02/28/540303.aspx"&gt;http://blogs.msdn.com/vsdata&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;For more information about VFP future visit &lt;A href="http://msdn.microsoft.com/vfoxpro/roadmap"&gt;http://msdn.microsoft.com/vfoxpro/roadmap&lt;/A&gt;&amp;nbsp;. &lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=1253" width="1" height="1"&gt;</description><category domain="http://weblogs.foxite.com/dlanorok/archive/category/108.aspx">Visual FoxPro</category></item><item><title>Showing the installed printers, using object Windows Scripting Host</title><link>http://weblogs.foxite.com/dlanorok/archive/2005/11/22/1010.aspx</link><pubDate>Tue, 22 Nov 2005 22:59:00 GMT</pubDate><guid isPermaLink="false">8827bd1c-7596-4a8f-b0de-f59ce9ede522:1010</guid><dc:creator>rorrmo</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.foxite.com/dlanorok/comments/1010.aspx</comments><wfw:commentRss>http://weblogs.foxite.com/dlanorok/commentrss.aspx?PostID=1010</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana color=#000000 size=2&gt;In FoxPro is possible to be made many things, and thanks to it, we can remove to him to benefit to component external, such as COM Objects, or own Windows components, as it is the case of the Windows Scripting Host.&amp;nbsp; It is possible that with function APRINTERS, we obtain but data that the one that has been obtained in this routine, but this it was a small example that if we removed benefit of everything we will be but productive.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Here the Example:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#008000 size=2&gt;*/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR&gt;*/&amp;nbsp;ShowPrinterswithWSH.prg&lt;BR&gt;*/&lt;BR&gt;*/&amp;nbsp;This is a routine that shows the ;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp; printers installed in the computer,;&lt;BR&gt;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#008000&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;only using the Windows Scripting Host, ;&lt;BR&gt;&amp;nbsp; &amp;nbsp;without the necessity to use the native ;&lt;BR&gt;&amp;nbsp;&amp;nbsp; function APRINTERS of Visual &lt;A title="Microsoft Visual FoxPro Home" href="http://msdn.com/vfoxpro"&gt;FoxPro&lt;/A&gt;.&lt;BR&gt;*/&lt;BR&gt;*/&amp;nbsp;Author: Ronald Ramirez&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;*/&amp;nbsp;Creation Date: June, 2003&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#008000&gt;*/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;LOCAL&lt;/FONT&gt; &lt;FONT color=#ff1493&gt;wshNetwork&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;As &lt;FONT color=#000000&gt;"&lt;/FONT&gt;&lt;FONT color=#a52a2a&gt;WScript.Network&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000&gt;"&lt;/FONT&gt; &lt;FONT color=#008000&gt;&amp;amp;&amp;amp;WshNetwork&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;LOCAL&lt;/FONT&gt; &lt;FONT color=#ff1493&gt;Printers&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; As Object&lt;/FONT&gt; &lt;FONT color=#008000&gt;&amp;amp;&amp;amp;WshCollection&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;LOCAL&lt;/FONT&gt; &lt;FONT color=#ff1493&gt;i&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;As Integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#ff1493&gt;wshNetwork &lt;/FONT&gt;= &lt;FONT color=#0000ff&gt;CreateObject&lt;/FONT&gt;("&lt;FONT color=#a52a2a&gt;WScript.Network&lt;/FONT&gt;")&lt;BR&gt;&lt;FONT color=#ff1493&gt;Printers&lt;/FONT&gt; = &lt;FONT color=#ff1493&gt;wshNetwork.EnumPrinterConnections&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#0000ff&gt;For&lt;/FONT&gt; &lt;FONT color=#ff1493&gt;i = 1&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;To&lt;/FONT&gt; &lt;FONT color=#ff1493&gt;Printers.Count&lt;/FONT&gt; &lt;FONT color=#ff1493&gt;- 1&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;Step&lt;/FONT&gt;&lt;FONT color=#ff1493&gt; 2&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ? "&lt;FONT color=#a52a2a&gt;Printer Name:&lt;/FONT&gt; " &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?? &lt;FONT color=#ff1493&gt;Printers&lt;/FONT&gt;.&lt;FONT color=#0000ff&gt;Item&lt;/FONT&gt;(&lt;FONT color=#ff1493&gt;i&lt;/FONT&gt;)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ? "&lt;FONT color=#a52a2a&gt;Port:&lt;/FONT&gt; " &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?? &lt;FONT color=#ff1493&gt;Printers&lt;/FONT&gt;.&lt;FONT color=#0000ff&gt;Item&lt;/FONT&gt;(&lt;FONT color=#ff1493&gt;i - 1&lt;/FONT&gt;)&lt;BR&gt;&lt;FONT color=#0000ff&gt;Endfor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;? "&lt;FONT color=#a52a2a&gt;Total of Installed Printers:&lt;/FONT&gt; " &lt;BR&gt;?? &lt;FONT color=#0000ff&gt;INT&lt;/FONT&gt;(&lt;FONT color=#ff1493&gt;Printers.Count / 2&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#ff1493&gt;Printers&lt;/FONT&gt; = &lt;FONT color=#a52a2a&gt;.null.&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#ff1493&gt;wshNetwork&lt;/FONT&gt; = &lt;FONT color=#a52a2a&gt;.null.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#008000 size=2&gt;*/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Regards!&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=1010" width="1" height="1"&gt;</description><category domain="http://weblogs.foxite.com/dlanorok/archive/category/108.aspx">Visual FoxPro</category></item><item><title>It updates your TaskPane</title><link>http://weblogs.foxite.com/dlanorok/archive/2005/04/27/412.aspx</link><pubDate>Wed, 27 Apr 2005 19:16:00 GMT</pubDate><guid isPermaLink="false">8827bd1c-7596-4a8f-b0de-f59ce9ede522:412</guid><dc:creator>rorrmo</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.foxite.com/dlanorok/comments/412.aspx</comments><wfw:commentRss>http://weblogs.foxite.com/dlanorok/commentrss.aspx?PostID=412</wfw:commentRss><description>&lt;p&gt;
Yes, now you can refresh the content of the FoxPro TaskPane, from the following site: &lt;A href="http://www.TaskPane.com"&gt;http://www.TaskPane.com&lt;/A&gt;, here you found XML Panes to download and install into own TaskPane.
&lt;/p&gt;&lt;p&gt;
The Visual FoxPro, is a feature to Visual FoxPro from your 8.0 version, and is the elegant and pretty tool and add-in to Visual FoxPro.
&lt;/p&gt;&lt;p&gt;
Now you can obtain very information from RSS, XML Web Services, XML, etc. through of the TaskPane of Visual FoxPro.
&lt;/p&gt;&lt;p&gt;
Excellent, right?
&lt;/p&gt;&lt;p&gt;
Regards!&lt;/p&gt;&lt;img src="http://weblogs.foxite.com/aggbug.aspx?PostID=412" width="1" height="1"&gt;</description><category domain="http://weblogs.foxite.com/dlanorok/archive/category/108.aspx">Visual FoxPro</category></item></channel></rss>