<?xml version="1.0" encoding="us-ascii"?><rss version="2.0"><channel><title>Foxite.COM Visual FoxPro Forum</title><link>http://www.foxite.com/forum/</link><description>Latest topics posted to the Foxite.COM Visual FoxPro Forum.</description><copyright>(C) Copyright 2001 - 2010 Foxite.COM / Eric den Doop - The Netherlands</copyright><ttl>5</ttl><language>en</language><generator>Foxite.Community.Web.RSSFeeds.Forum</generator><image><url>http://www.foxite.com/images/foxite.gif</url><title>Foxite.COM Visual FoxPro Forum</title><link>http://www.foxite.com/forum/</link><description>Latest topics posted to the Foxite.COM Visual FoxPro Forum.</description></image><item><title>Other: Virtual Network Drive                                                                               </title><link>http://www.foxite.com/archives/0000256981.htm</link><guid>http://www.foxite.com/archives/0000256981.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear Sirs,&lt;br /&gt;&lt;br /&gt;I am making a project on a nework environment and data storage drive is:&lt;br /&gt;\\fileserver\APMS&lt;br /&gt;&lt;br /&gt;Is it possible to create a virtual drive of same letter on a PC not connected to LAN? because I need this environment to test my work sometime at home.&lt;br /&gt;&lt;br /&gt;Thanking you,&lt;br /&gt;IRFAN</description><author>Mohammad Irfan&lt;invalid-address@foxite.com&gt;</author><pubDate>Sun, 21 Mar 2010 10:52:53 +0100</pubDate></item><item><title>Reports and Printers: print with @ say                                                                                    </title><link>http://www.foxite.com/archives/0000256803.htm</link><guid>http://www.foxite.com/archives/0000256803.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;hi kulwant &lt;br /&gt;&lt;br /&gt;tried using your way, it worked, but i cannot select the font like i am using shivaji01 font for few lines and then courier new for few lines, &lt;br /&gt;the fonts are not getting printed and the whole printout comes on 132 hence it is not accepting the cpi setting also&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;i guess it is because of the initial ??? ' ' issued after set printer to&lt;br /&gt;&lt;br /&gt;please help&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;regards&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;kemir&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&gt; &gt; Hello,&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; I guess you guys have not understood my problem&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; Here is a sample program&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; store 0 to row, col&lt;br /&gt;&gt; &gt; set devi to prin&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; @ row,col say "ABCD"&lt;br /&gt;&gt; &gt; row=row+1&lt;br /&gt;&gt; &gt; @ row,col say "ABCD"&lt;br /&gt;&gt; &gt; row=row+1&lt;br /&gt;&gt; &gt; @ row,col say "ABCD"&lt;br /&gt;&gt; &gt; row=row+1&lt;br /&gt;&gt; &gt; @ row,col say "ABCD"&lt;br /&gt;&gt; &gt; row=row+1&lt;br /&gt;&gt; &gt; @ row,col say "ABCD"&lt;br /&gt;&gt; &gt; row=row+1&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; ***** Now here after the output has printed the said text of say 5 lines or 3 lines&lt;br /&gt;&gt; &gt; ***** in my dos program i used to issue an eject command, that would enable a full formfeed to the printer &lt;br /&gt;&gt; &gt; ***** and make the printer enable to print the next copy on exactly the top row set, need not have to re-set the ***** page for top row, so like if we issue eject command , it ejects the full page but where as in the above said&lt;br /&gt;&gt; &gt; ***** text if i had to issue eject command with consideration of page length of 4" instead of 11 / 12" then i used&lt;br /&gt;&gt; &gt; ***** to issue the following text&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; if prow()#0&lt;br /&gt;&gt; &gt; set devi to prin&lt;br /&gt;&gt; &gt; @ row,col say chr(27)+ chr(67)+ chr(4) &amp;&amp;&amp;&amp; This would set the page length to 4" so that it skips only&lt;br /&gt;&gt; &gt; that much page and again the printer is ready to print the &lt;br /&gt;&gt; &gt; next page without having the reset the top row and margin manually&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; set devi to scree&lt;br /&gt;&gt; &gt; row=0&lt;br /&gt;&gt; &gt; endif&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; but in foxpro for windows when i issue the chr commands it prints garbage or graphic signs and doesnot accept or understand the chr commands and issues a full page formfeed of 11 / 12" when the eject command is given&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; My printer is lets say epson lx 300+ / Epson 1050+ / Fx 1050 / Tvse printers ---- these are common printer and have also checked their manauls , but doesnot understand the chr command as it does in dos module&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; if the same above program is run using foxpro for dos it works absolutely fine&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; regards&lt;br /&gt;&gt; &gt; &lt;br /&gt;&gt; &gt; kemir&lt;br /&gt;&gt; &lt;br /&gt;&gt; Hi Kemir,&lt;br /&gt;&gt; &lt;br /&gt;&gt; If i have understood your question correctly, you want to print 3,4 or 5 (or more)lines and want the printer to stop right there ...without any formfeed. &lt;br /&gt;&gt; &lt;br /&gt;&gt; if Yes ..&lt;br /&gt;&gt; &lt;br /&gt;&gt; Please try this and see if it is helpful. (I don't have FPW anymore but this is what I used to do with FPW and this still works with VFP9)&lt;br /&gt;&gt; &lt;br /&gt;&gt; If you have line 'SET PRINTER ON' anywhere before the printing starts ...REMOVE IT. &lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;Set Device To Print&lt;br /&gt;&gt; ??? ''          &amp;&amp; three question marks , single quotes START and single quotes END &lt;br /&gt;&gt; Printjob&lt;br /&gt;&gt; 		@ Prow(),1 Say 'abc'&lt;br /&gt;&gt; 		@ Prow(),40 Say 'def'&lt;br /&gt;&gt; 		@ Prow()+1,1 Say '------------------------------------------------------------------'&lt;br /&gt;&gt; 		@ Prow()+1,1 Say ' ITEM                          Qty     Rate   Nontax      Taxable '&lt;br /&gt;&gt; 		@ Prow()+1,1 Say '------------------------------------------------------------------'&lt;br /&gt;&gt; &lt;br /&gt;&gt; for i = 1 to 10      &amp;&amp; to move the printer roller forward 10 lines&lt;br /&gt;&gt; @ prow() + 1, 1 say ' '&lt;br /&gt;&gt; endfor&lt;br /&gt;&gt; &lt;br /&gt;&gt; Endprintjob&lt;br /&gt;&gt; Set Device To Screen&lt;br /&gt;&gt; Set Print To&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&gt; &lt;br /&gt;&gt; You will not get any unwanted page eject.&lt;br /&gt;&gt;</description><author>kemir shah&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 12:07:32 +0100</pubDate></item><item><title>Databases, Tables and SQL Server: creating multi-company of an application                                                            </title><link>http://www.foxite.com/archives/0000256980.htm</link><guid>http://www.foxite.com/archives/0000256980.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;Dear Expert,&lt;br /&gt;&lt;br /&gt;A multi user application is to be made multi company&lt;br /&gt;&lt;br /&gt;The challenges are as follows:&lt;br /&gt;&lt;br /&gt;a. For each company, the processes are unique.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;REQUEST.&lt;br /&gt;&lt;br /&gt;If a new company is added to the application. The system should be able to&lt;br /&gt;&lt;br /&gt;1. Create its reports from the default, and put in a folder or sub-folder.&lt;br /&gt;&lt;br /&gt;2. It should be possible to run the &lt;B&gt;end-of-month&lt;/B&gt; processes independently for each company.&lt;br /&gt;&lt;br /&gt;3. It should be possible to create a set of reports for each company  very different from another.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How is the above request achievable?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks</description><author>Leonard Trevor&lt;invalid-address@foxite.com&gt;</author><pubDate>Sun, 21 Mar 2010 10:47:45 +0100</pubDate></item><item><title>Classes and Objects: Wait State                                                                                          </title><link>http://www.foxite.com/archives/0000256950.htm</link><guid>http://www.foxite.com/archives/0000256950.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi All,&lt;br /&gt;&lt;br /&gt;In one of my applications I need to import/append millions of records into DBF tables. I would like to have something happening on my screen while this process is active (which may take up to 5 minutes!!). A wait window screen is not really on option as nothing happens and the user may think the application is frozen. I've tried animated GIFs, like the Thobber posted on Foxite, but they don't move either during such disk intensive jobs. Is there no other solution? A class perhaps that reserves some memory to keep the animated GIF moving?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Harry Lode</description><author>Harry Lode&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 18:36:29 +0100</pubDate></item><item><title>Forms: To select table from diff. data session                                                             </title><link>http://www.foxite.com/archives/0000256973.htm</link><guid>http://www.foxite.com/archives/0000256973.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear sirs,&lt;br /&gt;&lt;br /&gt;If a table opened in a default data session with alias 'postings'. How it can be select through a Form using 'private data session'. Please guide&lt;br /&gt;&lt;br /&gt;Thanking you,&lt;br /&gt;IRFAN</description><author>Mohammad Irfan&lt;invalid-address@foxite.com&gt;</author><pubDate>Sun, 21 Mar 2010 08:43:09 +0100</pubDate></item><item><title>Databases, Tables and SQL Server: Copy Table From One Location to another                                                             </title><link>http://www.foxite.com/archives/0000256953.htm</link><guid>http://www.foxite.com/archives/0000256953.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear Sirs,&lt;br /&gt;&lt;br /&gt;Please guide me what is the best way to copy a table from one location to another filtering the specific records without opening the shared tables. For example:&lt;br /&gt;&lt;br /&gt;select * from MYTABLE where uzerid&gt;100 into table 'abc'&lt;br /&gt;&lt;br /&gt;I think its the best way. But is there some better option than this command which prevent opening the table first.&lt;br /&gt;&lt;br /&gt;Thanking you,&lt;br /&gt;IRFAN</description><author>Mohammad Irfan&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 19:14:58 +0100</pubDate></item><item><title>Forms: Form method and do program approach                                                                 </title><link>http://www.foxite.com/archives/0000256904.htm</link><guid>http://www.foxite.com/archives/0000256904.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi all&lt;br /&gt;&lt;br /&gt;I wrote a print routine in two ways&lt;br /&gt;&lt;br /&gt;1.. add metod in form&lt;br /&gt;then call it   like  thisform.printit(para1, para2)&lt;br /&gt;&lt;br /&gt;2.  create prg file &lt;br /&gt;call it&lt;br /&gt;=printit(para1, para2)&lt;br /&gt;&lt;br /&gt;what is the difference between two? Which one is better.&lt;br /&gt;&lt;br /&gt;I have one benefit in prg, call this prg from every from easily.&lt;br /&gt;&lt;br /&gt;Nadeem Iqbal</description><author>Nadeem Iqbal&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 07:24:05 +0100</pubDate></item><item><title>General VFP Topics: Add Additional TextBox in Excel Column                                                              </title><link>http://www.foxite.com/archives/0000256656.htm</link><guid>http://www.foxite.com/archives/0000256656.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;Hi All,&lt;br /&gt;&lt;br /&gt;1. Is it possible to add extra textbox to excel column&lt;br /&gt;2. One would hold Numeric Data &amp; Other would hold character data&lt;br /&gt;3. By Using SetAll.DynamicCurrentControl I would be able to show Character for row marked Type='Character'&lt;br /&gt;   &amp; Numeric data for rows marked as Type="Numeric" in same column&lt;br /&gt;4. I dont want to store numeric data as character&lt;br /&gt;This is required because in some rows I have to Put 'Yes' or 'No' based on conditions&lt;br /&gt;&lt;br /&gt;Is it possible or can be done by some other means&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Rajesh</description><author>Rajesh Samadia&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 01:52:52 +0100</pubDate></item><item><title>Win32API programming: Windows Messages / Events                                                                           </title><link>http://www.foxite.com/archives/0000256840.htm</link><guid>http://www.foxite.com/archives/0000256840.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi, I'm trying to know if the user clicked on the "Print" button in the "Printer Prompt" dialog.&lt;br /&gt;For this task, I decided to use BINDEVENT() to get control of the Windows Messages.&lt;br /&gt;&lt;br /&gt;I managed to get the main Dialog and the Print button's hWND, but I'm still having problems in firing an event when that button is pressed. In fact, I want to set a property with TRUE if the button was pressed.&lt;br /&gt;&lt;br /&gt;Below is the code I'm working on, based on samples from Herman Tan &lt;a target='_blank' href='http://hermantan.blogspot.com/2008/07/centering-vfp-messagebox-in-any-form.html' rel='nofollow'&gt;http://hermantan.blogspot.com/2008/07/centering-vfp-messagebox-in-any-form.html&lt;/a&gt; and Anatoliy Mogylevets &lt;a target='_blank' href='http://www.news2news.com/vfp/?example=274&amp;function=159' rel='nofollow'&gt;http://www.news2news.com/vfp/?example=274&amp;function=159&lt;/a&gt;. Can someone run that sample and give me a hint ?&lt;br /&gt;&lt;br /&gt;This is to be used by Foxypreviewer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class='codeblock'&gt;#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; WM_LBUTTONDOWN 		0x0201
#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; WM_KEYDOWN 		0x0100
#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; WM_NCLBUTTONDOWN 	0x00A1
#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; WM_PARENTNOTIFY 	0x0210
#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; WM_COMMAND 		0x0111
#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; WM_RBUTTONDOWN 		0x204
#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; GWL_WNDPROC 		-4
#&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; WM_PAINT 		0x006

&lt;font color="Blue"&gt;LOCAL&lt;/font&gt; loDialog
&lt;font color="Blue"&gt;UNBINDEVENTS&lt;/font&gt;(0) &lt;font color="Green" family="Courier New"&gt;&amp;amp;&amp;amp; Clear all remaining events&lt;/font&gt;

loDialog = &lt;font color="Blue"&gt;CREATEOBJECT&lt;/font&gt;(&lt;font color="Black"&gt;"pr_PrinterDialog"&lt;/font&gt;)
loDialog.RunDialog()
&lt;font color="Blue"&gt;MESSAGEBOX&lt;/font&gt;(loDialog.lPrinted)
loDialog = &lt;font color="Blue"&gt;NULL&lt;/font&gt;

&lt;font color="Blue"&gt;RETURN&lt;/font&gt;
&lt;font color="Green" family="Courier New"&gt;**********************&lt;/font&gt;

&lt;font color="Blue"&gt;DEFINE&lt;/font&gt; &lt;font color="Blue"&gt;CLASS&lt;/font&gt; pr_PrinterDialog &lt;font color="Blue"&gt;AS&lt;/font&gt; &lt;font color="Blue"&gt;CUSTOM&lt;/font&gt;
	pOrgProc = 0
	lPrinted = .F.

	&lt;font color="Blue"&gt;PROCEDURE&lt;/font&gt; &lt;font color="Blue"&gt;INIT&lt;/font&gt;
		&lt;font color="Blue"&gt;DECLARE&lt;/font&gt; &lt;font color="Blue"&gt;LONG&lt;/font&gt; GetWindowLong &lt;font color="Blue"&gt;IN&lt;/font&gt; User32 ;
			&lt;font color="Blue"&gt;LONG&lt;/font&gt; nhWnd, &lt;font color="Blue"&gt;INTEGER&lt;/font&gt; nIndex

		&lt;font color="Blue"&gt;DECLARE&lt;/font&gt; &lt;font color="Blue"&gt;LONG&lt;/font&gt; CallWindowProc &lt;font color="Blue"&gt;IN&lt;/font&gt; User32 ;
			&lt;font color="Blue"&gt;LONG&lt;/font&gt; lpPrevWndFunc, &lt;font color="Blue"&gt;LONG&lt;/font&gt; nhWnd, ;
			&lt;font color="Blue"&gt;LONG&lt;/font&gt; uMsg, &lt;font color="Blue"&gt;LONG&lt;/font&gt; wParam, &lt;font color="Blue"&gt;LONG&lt;/font&gt; &lt;font color="Blue"&gt;LPARAM&lt;/font&gt;

		&lt;font color="Blue"&gt;DECLARE&lt;/font&gt; &lt;font color="Blue"&gt;LONG&lt;/font&gt; FindWindowEx &lt;font color="Blue"&gt;IN&lt;/font&gt; User32 ;
			&lt;font color="Blue"&gt;LONG&lt;/font&gt; hWndParent, &lt;font color="Blue"&gt;LONG&lt;/font&gt; hWndChildAfter, ;
			&lt;font color="Blue"&gt;STRING&lt;/font&gt; lpszClass, &lt;font color="Blue"&gt;STRING&lt;/font&gt; lpszWindow

		&lt;font color="Blue"&gt;THIS&lt;/font&gt;.pOrgProc = GetWindowLong( &lt;font color="Blue"&gt;_VFP&lt;/font&gt;.HWND, -4 )
	&lt;font color="Blue"&gt;ENDPROC&lt;/font&gt;

	&lt;font color="Blue"&gt;PROCEDURE&lt;/font&gt; RunDialog( tc_Msg, tn_Type, tc_Title )
		&lt;font color="Blue"&gt;BINDEVENT&lt;/font&gt;( 0, WM_PAINT, &lt;font color="Blue"&gt;THIS&lt;/font&gt;, &lt;font color="Black"&gt;'WndProc'&lt;/font&gt; )

		&lt;font color="Blue"&gt;REPORT&lt;/font&gt; &lt;font color="Blue"&gt;FORM&lt;/font&gt; (&lt;font color="Blue"&gt;ADDBS&lt;/font&gt;(_Samples) + &lt;font color="Black"&gt;"SOLUTION\REPORTS\COLORS.FRX"&lt;/font&gt;) &lt;font color="Blue"&gt;NOCONSOLE&lt;/font&gt; &lt;font color="Blue"&gt;TO&lt;/font&gt; &lt;font color="Blue"&gt;PRINTER&lt;/font&gt; &lt;font color="Blue"&gt;PROMPT&lt;/font&gt;
		&lt;font color="Blue"&gt;UNBINDEVENTS&lt;/font&gt;( 0, WM_PAINT )
	&lt;font color="Blue"&gt;ENDPROC&lt;/font&gt;

	&lt;font color="Blue"&gt;PROCEDURE&lt;/font&gt; WndProc( th_Wnd, tn_Msg, t_wParam, t_lParam )
		&lt;font color="Blue"&gt;IF&lt;/font&gt; (tn_Msg == WM_PAINT) &lt;font color="Blue"&gt;AND&lt;/font&gt; (t_wParam == 0)

			&lt;font color="Blue"&gt;LOCAL&lt;/font&gt; lh_WndChild &lt;font color="Green" family="Courier New"&gt;&amp;amp;&amp;amp; This is the "Print" button hWND&lt;/font&gt;
			lh_WndChild = FindWindowEx( t_lParam, lh_WndChild, &lt;font color="Black"&gt;'Button'&lt;/font&gt;, 0 )

			&lt;font color="Blue"&gt;IF&lt;/font&gt; (lh_WndChild &amp;lt;&amp;gt; 0)
				hWindow = t_lParam
&lt;font color="Green" family="Courier New"&gt;				* link WM_PARENTNOTIFY window message to a method&lt;/font&gt;
				=&lt;font color="Blue"&gt;BINDEVENT&lt;/font&gt;(hWindow , WM_PARENTNOTIFY, &lt;font color="Blue"&gt;THIS&lt;/font&gt;, &lt;font color="Black"&gt;"WindowProc"&lt;/font&gt;)
				=&lt;font color="Blue"&gt;BINDEVENT&lt;/font&gt;(hWindow , WM_COMMAND, &lt;font color="Blue"&gt;THIS&lt;/font&gt;, &lt;font color="Black"&gt;"WindowProc"&lt;/font&gt;)

&lt;font color="Green" family="Courier New"&gt;				* BINDEVENT( hWindow , WM_LBUTTONDOWN, THIS, 'WndPrint' )&lt;/font&gt;
&lt;font color="Green" family="Courier New"&gt;				* BINDEVENT( hWindow , WM_NCLBUTTONDOWN, THIS, 'WndPrint' )&lt;/font&gt;
			&lt;font color="Blue"&gt;ENDIF&lt;/font&gt;

		&lt;font color="Blue"&gt;ENDIF&lt;/font&gt;

		&lt;font color="Blue"&gt;Return&lt;/font&gt; CallWindowProc( &lt;font color="Blue"&gt;This&lt;/font&gt;.pOrgProc, th_Wnd, tn_Msg, t_wParam, t_lParam )
	&lt;font color="Blue"&gt;ENDPROC&lt;/font&gt;


	&lt;font color="Blue"&gt;PROCEDURE&lt;/font&gt; WindowProc(hWindow &lt;font color="Blue"&gt;as&lt;/font&gt; &lt;font color="Blue"&gt;Integer&lt;/font&gt;,;
			nMsgID &lt;font color="Blue"&gt;as&lt;/font&gt; &lt;font color="Blue"&gt;Integer&lt;/font&gt;, wParam &lt;font color="Blue"&gt;as&lt;/font&gt; &lt;font color="Blue"&gt;Integer&lt;/font&gt;, &lt;font color="Blue"&gt;lParam&lt;/font&gt; &lt;font color="Blue"&gt;as&lt;/font&gt; &lt;font color="Blue"&gt;Integer&lt;/font&gt;)

		&lt;font color="Blue"&gt;LOCAL&lt;/font&gt; nReturn
		nReturn=0

		&lt;font color="Blue"&gt;DO&lt;/font&gt; &lt;font color="Blue"&gt;CASE&lt;/font&gt;
		&lt;font color="Blue"&gt;CASE&lt;/font&gt; nMsgID=WM_COMMAND
			&lt;font color="Blue"&gt;ACTIVATE&lt;/font&gt; &lt;font color="Blue"&gt;SCREEN&lt;/font&gt;
			? &lt;font color="Black"&gt;"WM_COMMAND: wParam="&lt;/font&gt; + &lt;font color="Blue"&gt;LTRIM&lt;/font&gt;(&lt;font color="Blue"&gt;STR&lt;/font&gt;(wParam)) +;
				&lt;font color="Black"&gt;", lParam="&lt;/font&gt; + &lt;font color="Blue"&gt;LTRIM&lt;/font&gt;(&lt;font color="Blue"&gt;STR&lt;/font&gt;(&lt;font color="Blue"&gt;lParam&lt;/font&gt;))

		&lt;font color="Blue"&gt;CASE&lt;/font&gt; nMsgID=WM_PARENTNOTIFY
			&lt;font color="Blue"&gt;ACTIVATE&lt;/font&gt; &lt;font color="Blue"&gt;SCREEN&lt;/font&gt;
			? &lt;font color="Black"&gt;"WM_PARENTNOTIFY: wParam="&lt;/font&gt; + &lt;font color="Blue"&gt;LTRIM&lt;/font&gt;(&lt;font color="Blue"&gt;STR&lt;/font&gt;(wParam)) +;
				&lt;font color="Black"&gt;", lParam="&lt;/font&gt; + &lt;font color="Blue"&gt;LTRIM&lt;/font&gt;(&lt;font color="Blue"&gt;STR&lt;/font&gt;(&lt;font color="Blue"&gt;lParam&lt;/font&gt;))

			&lt;font color="Blue"&gt;This&lt;/font&gt;.lPrinted = .T.

			&lt;font color="Blue"&gt;DO&lt;/font&gt; &lt;font color="Blue"&gt;CASE&lt;/font&gt;
			&lt;font color="Blue"&gt;CASE&lt;/font&gt; wParam = WM_LBUTTONDOWN
				? &lt;font color="Black"&gt;" -- Left Button pressed"&lt;/font&gt;
			&lt;font color="Blue"&gt;CASE&lt;/font&gt; wParam = WM_RBUTTONDOWN
				? &lt;font color="Black"&gt;" -- Right Button pressed"&lt;/font&gt;
			&lt;font color="Blue"&gt;ENDCASE&lt;/font&gt;

		&lt;font color="Blue"&gt;OTHERWISE&lt;/font&gt;
&lt;font color="Green" family="Courier New"&gt;		* pass control to the original window procedure&lt;/font&gt;
&lt;font color="Green" family="Courier New"&gt;		*        nReturn = CallWindowProc(THIS.hOrigProc, THIS.hWindow,;&lt;/font&gt;
			m.nMsgID, m.wParam, m.&lt;font color="Blue"&gt;lParam&lt;/font&gt;)
		&lt;font color="Blue"&gt;ENDCASE&lt;/font&gt;

		&lt;font color="Blue"&gt;RETURN&lt;/font&gt; nReturn
	&lt;font color="Blue"&gt;ENDPROC&lt;/font&gt;

	&lt;font color="Blue"&gt;PROCEDURE&lt;/font&gt; &lt;font color="Blue"&gt;DESTROY&lt;/font&gt;
		&lt;font color="Blue"&gt;UNBINDEVENTS&lt;/font&gt;(0)
		&lt;font color="Blue"&gt;CLEAR&lt;/font&gt; &lt;font color="Blue"&gt;DLLS&lt;/font&gt;
	&lt;font color="Blue"&gt;ENDPROC&lt;/font&gt;
&lt;font color="Blue"&gt;ENDDEFINE&lt;/font&gt;
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks in advance for any insight regarding this.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Cesar&lt;br /&gt;&lt;a target='_blank' href="http://weblogs.foxite.com/vfpimaging"&gt;My Blog&lt;/a&gt;</description><author>Cesar&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 15:59:52 +0100</pubDate></item><item><title>Active X Controls &amp; OLE Automation: Select another soundcard                                                                            </title><link>http://www.foxite.com/archives/0000256964.htm</link><guid>http://www.foxite.com/archives/0000256964.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi all&lt;br /&gt;Can anyone tell how  I can select another soundcard for play mp3 in vfp9 using mciSendCommand ? &lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;Yaten</description><author>yaten&lt;invalid-address@foxite.com&gt;</author><pubDate>Sun, 21 Mar 2010 05:17:00 +0100</pubDate></item><item><title>Databases, Tables and SQL Server: SQL Select                                                                                          </title><link>http://www.foxite.com/archives/0000256789.htm</link><guid>http://www.foxite.com/archives/0000256789.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;Dear Experts&lt;br /&gt;&lt;br /&gt;The followong code appears incorrect, as the result is not the way I expect. Please help me.&lt;br /&gt;&lt;br /&gt;create cursor maindata (trtyp c(1), dtyp c(1),qty n(8,2))&lt;br /&gt;insert into maindata(trtyp,dtyp,qty) values("S","1",250)&lt;br /&gt;insert into maindata(trtyp,dtyp,qty) values("S","2",350)&lt;br /&gt;insert into maindata(trtyp,dtyp,qty) values("P","1",450)&lt;br /&gt;insert into maindata(trtyp,dtyp,qty) values("P","2",550)&lt;br /&gt;&lt;br /&gt;sele trtyp,dtyp,iif(trtyp="P" and dtyp = "1",qty,0) as pur_cash,;&lt;br /&gt;iif(trtyp="P" and dtyp = "2",qty,0) as pur_credit,;&lt;br /&gt;iif(trtyp="S" and dtyp = "1",qty,0) as Sale_cash,;&lt;br /&gt;iif(trtyp="S" and dtyp = "2",qty,0) as sale_credit ;&lt;br /&gt;from maindata&lt;br /&gt;&lt;br /&gt;Thanks and regards&lt;br /&gt;Baby Thomas</description><author>Baby Thomas&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 09:36:33 +0100</pubDate></item><item><title>Active X Controls &amp; OLE Automation: MSComCtl2.DTPicker.2 Problem                                                                        </title><link>http://www.foxite.com/archives/0000256937.htm</link><guid>http://www.foxite.com/archives/0000256937.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Good day.&lt;br /&gt;&lt;br /&gt;I used an object with Oleclass MSComCtl2.DTPicker.2 (Date Picker). I named the Object DatePicker1. &lt;br /&gt;&lt;br /&gt;As a security procedure, based on user profile, I need to Enable or Disable the object. I tried using the Enabled property of the object. Though Enabled property  is set to .F., the user can still click the down arrow (Drop-Down) and select his desired date. &lt;br /&gt;&lt;br /&gt;Please help.&lt;br /&gt;&lt;br /&gt;Thanks.</description><author>ian eblamo&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 16:39:06 +0100</pubDate></item><item><title>General VFP Topics: MESSAGE(1) command                                                                                  </title><link>http://www.foxite.com/archives/0000256941.htm</link><guid>http://www.foxite.com/archives/0000256941.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;Hello Experts!&lt;br /&gt;&lt;br /&gt;I saw this in VFP9 help.&lt;br /&gt;&lt;br /&gt;&lt;pre class='codeblock'&gt;&lt;font color="Blue"&gt;MESSAGE&lt;/font&gt;(1)
&lt;/pre&gt; is not available in the runtime.&lt;br /&gt;&lt;br /&gt;If the program source code is not available, &lt;pre class='codeblock'&gt;&lt;font color="Blue"&gt;MESSAGE&lt;/font&gt;(1)
&lt;/pre&gt; returns one of the following: &lt;br /&gt;The entire program line if the line is macro-substituted.&lt;br /&gt;&lt;br /&gt;A command if the line contains a command without any additional clauses.&lt;br /&gt;A command followed by three dots (...) if the line contains a command and additional clauses.&lt;br /&gt;&lt;br /&gt;I have an application built in VFP6 and have error handler module where I capture the error line of code using &lt;pre class='codeblock'&gt;&lt;font color="Blue"&gt;MESSAGE&lt;/font&gt;(1)
&lt;/pre&gt;. I've a situation where, the additional clause should be displayed during error handling.&lt;br /&gt;&lt;br /&gt;Is there any way we can list the additional clause?&lt;br /&gt;&lt;br /&gt;Thank you in advance for the help!&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jyotish</description><author>Jyothish KV&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 17:04:52 +0100</pubDate></item><item><title>Foxite Downloads: Arg Txlib for Textcontrol                                                                           </title><link>http://www.foxite.com/archives/0000256946.htm</link><guid>http://www.foxite.com/archives/0000256946.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;&lt;B&gt;Arg Txlib for Textcontrol 15.1 (Ribbon Textcontrol for Visual Foxpro)&lt;/B&gt;&lt;br /&gt;&lt;br /&gt;Alex Grigorjev has brought us his marvelous Command Bars Library. Now he is going to bring us something even more powerful: the complete integration of the industry leading activex Textcontrol, adapted to VFP. Implementation of a powerful ribbon based (word-like) Textcontrol into your app has neven been easier before! Design new apps with integrated Textcontrol with the look and feel of Office 2010. This is a demo of the upcoming product features. The demo (just 1 exe file) is completely virtualized and works on Windows 2000, XP, Vista and 7 in 32 Bit and 64 Bit Version in admin and guest mode. All activex libs, foxpro runtimes are within the "exe", there is no need to install anything on your machine. Watch the new fading possibility of command bars lib 8.08 in action with this demo.&lt;br /&gt;&lt;br /&gt;&lt;a target='_blank' href='http://www.swissholter.com/argtxcontroldemo/arglibdemo0951Beta.exe' rel='nofollow'&gt;http://www.swissholter.com/argtxcontroldemo/arglibdemo0951Beta.exe&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Installation: &lt;br /&gt;Copy the exe file to a folder of your choice and start it from there. Klick on the "Textcontrol Ribbon Interface" tab to see the functional demo of ribbon-style activex txcontrol. Click on options on the right side of the menu to try out the fully implemented themes. &lt;br /&gt;&lt;br /&gt;Changes and corrections in this release:&lt;br /&gt;Alex made many corrections and changes. He moved all code to vcx-files in order to simplify the development work for you. The product is much more stable and even faster now.&lt;br /&gt;Print preview is still not implemented but will be implemented with the next release.&lt;br /&gt;Remeber, this is a virtualized version. Therefore the performance is a bit lower than in a normal environment!</description><author>Thomas Cornau&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 17:44:36 +0100</pubDate></item><item><title>Grids: Checkbox in grid  programmatically                                                                  </title><link>http://www.foxite.com/archives/0000256939.htm</link><guid>http://www.foxite.com/archives/0000256939.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;hi,&lt;br /&gt;  how to add checkbox programmatically in grid. at run time.&lt;br /&gt;&lt;br /&gt;please support.&lt;br /&gt;&lt;br /&gt;Pandurang S.chavan</description><author>pandurang chavan&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 16:53:23 +0100</pubDate></item><item><title>Forms: print html from vfp                                                                                 </title><link>http://www.foxite.com/archives/0000256741.htm</link><guid>http://www.foxite.com/archives/0000256741.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;heya&lt;br /&gt;&lt;br /&gt;plz can i no how to print html document from vfp?</description><author>madlev morkov&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 21:31:48 +0100</pubDate></item><item><title>Active X Controls &amp; OLE Automation: Print Richtext on Report                                                                            </title><link>http://www.foxite.com/archives/0000256935.htm</link><guid>http://www.foxite.com/archives/0000256935.htm</guid><description>Version: Visual FoxPro 7&lt;br /&gt;&lt;br /&gt;Hi to all&lt;br /&gt;&lt;br /&gt;I store richtext in a general field. And print it on report with other data its working is well if the richtext box consist on single page.When it increase more than two pages or more. It only print or preview the only one page.&lt;br /&gt;&lt;br /&gt;what i do for remove this error. Please help me.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Rashid Mehmood</description><author>Rashid Mehmood&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 15:12:51 +0100</pubDate></item><item><title>ODBC, ADO and OLEDB: MySQL Speed issue                                                                                   </title><link>http://www.foxite.com/archives/0000256844.htm</link><guid>http://www.foxite.com/archives/0000256844.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi All,&lt;br /&gt;&lt;br /&gt;I am using MySql version 5.1 as a backend database and VFP9 SP2 as a front end. They are connected through MySql Connector/ODBC. However I have one table with about 600,000 records which I have to bring over to the work station in a couple of screens. Using the MySql administrator, getting all this data can take only about 30 seconds, however getting this data from the workstation can take betweeen 4 and 5 minutes, which I am sure you appreciate is way too slow. Can anybody out there help me please to speed this up. I am at my wits end.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;&lt;br /&gt;Garrett.</description><author>Garrett Fennelly&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 17:26:07 +0100</pubDate></item><item><title>General VFP Topics: Download archives for offline viewing                                                               </title><link>http://www.foxite.com/archives/0000256657.htm</link><guid>http://www.foxite.com/archives/0000256657.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;Hi All,&lt;br /&gt;&lt;br /&gt;How can I download all archives in one go for offline viewing&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Rajesh</description><author>Rajesh Samadia&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 01:58:22 +0100</pubDate></item><item><title>Projects and Design: no over write msg appear                                                                            </title><link>http://www.foxite.com/archives/0000256922.htm</link><guid>http://www.foxite.com/archives/0000256922.htm</guid><description>Version: Visual FoxPro 5&lt;br /&gt;&lt;br /&gt;hi experts,&lt;br /&gt;is there any way that no msg appear when we over write on a table&lt;br /&gt;Regards, &lt;br /&gt;madiha saleem</description><author>madiha saleem&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 10:55:26 +0100</pubDate></item><item><title>Errors &amp; Debugging: BOUT EMPTY FIELDS                                                                                   </title><link>http://www.foxite.com/archives/0000256791.htm</link><guid>http://www.foxite.com/archives/0000256791.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;i have an empty field but it wont return .T. when i try to use empty() and isblank().&lt;br /&gt;i also tried to alltrim() but still no luck&lt;br /&gt;When i try to use len() it would return an equal number to its fields width.&lt;br /&gt;&lt;br /&gt;is this a corrupted data? how can i fix this?&lt;br /&gt;&lt;br /&gt;thanks in advance</description><author>anthony jamandre&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 09:50:44 +0100</pubDate></item><item><title>Grids: how to delete a selected row in a grid                                                              </title><link>http://www.foxite.com/archives/0000256753.htm</link><guid>http://www.foxite.com/archives/0000256753.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;'nyone can help me?&lt;br /&gt;i did browse/search for some related problems am facin' now. its about deleting a record/row in a grid.&lt;br /&gt;i use grid for displaying records from table,and rigth now what i want is if the user select the row displayed in the grid and click on the delete command button it will delete the row/record from the grid and also in the table.&lt;br /&gt;&lt;br /&gt;i have used the insert-sql command to add record from my table, so that every time that the user input the itemcode to my textbox and click the add command button it will be added in my table and display in my grid.&lt;br /&gt;&lt;br /&gt;and now i've added a delete command button in my form just to delete a row/record.what ever row the user click/select from my grid and click on the delete button will be deleted.&lt;br /&gt;&lt;br /&gt;my problem is that the last item that the user added in my table is the one that been deleted and not the one being selected.&lt;br /&gt;&lt;br /&gt;i appreciate any help...&lt;br /&gt;thanks.&lt;br /&gt;&lt;br /&gt;heres my code&lt;br /&gt;*adding record to table by clicking the add button&lt;br /&gt;&lt;br /&gt;INSERT INTO pultable2 ( co_dr, pr_code, pr_desc, ;&lt;br /&gt;    pr_qty, pr_price, pr_amt, class, s_class, v_date) ;&lt;br /&gt;    VALUES ( pulslip,;&lt;br /&gt;     thisform.Text3.value, ;&lt;br /&gt;     thisform.Text4.Value, ;&lt;br /&gt;     thisform.Text5.Value, ;&lt;br /&gt;     thisform.Text6.Value, ;&lt;br /&gt;     thisform.Text9.Value, ;&lt;br /&gt;     thisform.Text7.Value, ;&lt;br /&gt;     thisform.Text8.Value, ;&lt;br /&gt;     thisform.Text2.value)&lt;br /&gt;   		 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thisform.grid1.RecordSource = [c:\browser1\pultable2]&lt;br /&gt;thisform.grid1.RecordSourceType = 0&lt;br /&gt;thisform.grid1.AutoFit&lt;br /&gt;thisform.grid1.ReadOnly = .t.&lt;br /&gt;thisform.grid1.Refresh &lt;br /&gt;thisform.Command3.SetFocus&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT pr_qty, pr_amt ;&lt;br /&gt;	FROM c:\browser1\pultable2 ;&lt;br /&gt;	INTO CURSOR pCursor1 READWRITE&lt;br /&gt;	 	&lt;br /&gt;SUM pCursor1.pr_qty TO totQty&lt;br /&gt;SUM pCursor1.pr_amt TO totAmt&lt;br /&gt;&lt;br /&gt;thisform.Text10.value = ALLTRIM(TRANSFORM(totQty,'999,999'))&lt;br /&gt;thisform.Text11.value = ALLTRIM(TRANSFORM(totAmt,'999,999,999.99'))&lt;br /&gt;&lt;br /&gt;**----------------&lt;br /&gt;&lt;br /&gt;*delete button&lt;br /&gt;&lt;br /&gt;SELECT pultable2&lt;br /&gt;DELETE &lt;br /&gt;thisform.grid1.Refresh</description><author>edwin ibo&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 04:03:46 +0100</pubDate></item><item><title>Projects and Design: sql query help                                                                                      </title><link>http://www.foxite.com/archives/0000256895.htm</link><guid>http://www.foxite.com/archives/0000256895.htm</guid><description>Version: Visual FoxPro 5&lt;br /&gt;&lt;br /&gt;hi experts,&lt;br /&gt;i need ur help in sql query&lt;br /&gt;i have three tables in which i have same columns but different number of rows and i want all of them in a single table with all records of all three tables like:&lt;br /&gt;table1&lt;br /&gt;id_1	emp_no&lt;br /&gt;1	234&lt;br /&gt;2	235&lt;br /&gt;3	236&lt;br /&gt;4	237&lt;br /&gt;&lt;br /&gt;table2&lt;br /&gt;id_2	emp_no&lt;br /&gt;1	300	&lt;br /&gt;2	301&lt;br /&gt;3	302&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;table3&lt;br /&gt;id_3	emp_no&lt;br /&gt;1	236&lt;br /&gt;2	237&lt;br /&gt;3	238&lt;br /&gt;4	239&lt;br /&gt;5	240&lt;br /&gt;6	241&lt;br /&gt;7	245&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;madiha saleem</description><author>madiha saleem&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 06:17:11 +0100</pubDate></item><item><title>Databases, Tables and SQL Server: SQL Table Unique No. for PK                                                                         </title><link>http://www.foxite.com/archives/0000256900.htm</link><guid>http://www.foxite.com/archives/0000256900.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear Expert&lt;br /&gt;&lt;br /&gt;I need to create a uniq code for a master file which should be max of 12 chrs&lt;br /&gt;must be digitial.The reason behind: Say if the master file is of A Paitent,then&lt;br /&gt;paitent may refer is ID for any information to Hospital.&lt;br /&gt;&lt;br /&gt;Points to be consider:&lt;br /&gt;1. Back End SQL-2005 Exp&lt;br /&gt;2. There r 16 Local Users&lt;br /&gt;3. Theer may be about 10 remote users who may create masters.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I had gone through Global Uniq no system but lenght does not fit for my requirement.&lt;br /&gt;&lt;br /&gt;Please!&lt;br /&gt;TIA&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Exchange of $1 Create only $1, But Exchage of one Ideas Makes different two Ideas*</description><author>Binod Binani&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 06:32:45 +0100</pubDate></item><item><title>Projects and Design: Display resolution                                                                                  </title><link>http://www.foxite.com/archives/0000256892.htm</link><guid>http://www.foxite.com/archives/0000256892.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear Sirs,&lt;br /&gt;&lt;br /&gt;How to check before a form is loaded that what Display resolution is set on a PC where that specific form is being loaded? (i.e. 1024 x 768 OR 1280 x 1024)&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;IRFAN</description><author>Mohammad Irfan&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 06:09:51 +0100</pubDate></item><item><title>Forms: Single Instance of a loaded Form                                                                    </title><link>http://www.foxite.com/archives/0000256889.htm</link><guid>http://www.foxite.com/archives/0000256889.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear Sirs,&lt;br /&gt;&lt;br /&gt;How to check that if a form or forms (suppose named "fm_survey", "fm_uzers") are already opened and how can block to be opened more than once in a session. Please guide.&lt;br /&gt;&lt;br /&gt;Thanking  you,&lt;br /&gt;IRFAN</description><author>Mohammad Irfan&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 05:55:56 +0100</pubDate></item><item><title>Classes and Objects: Configuring Imgcanvas                                                                               </title><link>http://www.foxite.com/archives/0000256875.htm</link><guid>http://www.foxite.com/archives/0000256875.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;I've placed an Imgcanvas control on a form. Set the property RenderMode = 1 since I apparently gives better performance for my graphics, but initially is shown in black. How can I make the initial color is white?&lt;br /&gt;&lt;br /&gt;Thanks in advance!&lt;br /&gt;&lt;br /&gt;Alfonso</description><author>Alfonso Rubalcava&lt;invalid-address@foxite.com&gt;</author><pubDate>Sat, 20 Mar 2010 02:09:49 +0100</pubDate></item><item><title>Projects and Design: age in months                                                                                       </title><link>http://www.foxite.com/archives/0000256800.htm</link><guid>http://www.foxite.com/archives/0000256800.htm</guid><description>Version: Visual FoxPro 5&lt;br /&gt;&lt;br /&gt;hi experts,&lt;br /&gt;can any one help me how can i calculate age of a person in months&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;madiha saleem</description><author>madiha saleem&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 11:31:14 +0100</pubDate></item><item><title>General VFP Topics: DLL conversion form VB                                                                              </title><link>http://www.foxite.com/archives/0000256685.htm</link><guid>http://www.foxite.com/archives/0000256685.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;The following is a sample code to read from a card reader in VB.&lt;br /&gt;&lt;br /&gt;Private Sub BeginTransaction_Click()&lt;br /&gt;Dim strFilename As String&lt;br /&gt;Dim strResult As String&lt;br /&gt;Dim strIDNum As String&lt;br /&gt;Dim strLicenseKey As String&lt;br /&gt;strLicenseKey = &lt;br /&gt;"L+tV6/GOd1qLZHiww/9SdSu35vQw0Y2+Ezj&lt;br /&gt;mYINKClw="&lt;br /&gt;Dim oMykad As New mykadpro.mykad&lt;br /&gt;Screen.MousePointer = vbHourglass&lt;br /&gt;strResult = &lt;br /&gt;oMykad.BeginTransaction(txtReadername.Tex&lt;br /&gt;t, strLicenseKey)&lt;br /&gt;If strResult = "0" Then&lt;br /&gt;lstData.Clear&lt;br /&gt;lstData.AddItem ("YOUR MYKAD &lt;br /&gt;INFORMATIONS (READ ONLY)")&lt;br /&gt;strIDNum = oMykad.getIDNum&lt;br /&gt;lstData.AddItem ("getIDNum: " &amp; strIDNum)&lt;br /&gt;lstData.AddItem ("getKPTName: " &amp; &lt;br /&gt;oMykad.getKPTName)&lt;br /&gt;lstData.AddItem ("getGMPCName: " &amp; &lt;br /&gt;oMykad.getGMPCName)&lt;br /&gt;lstData.AddItem ("getAddress1: " &amp; &lt;br /&gt;oMykad.getAddress1)&lt;br /&gt;lstData.AddItem ("getAddress2: " &amp; &lt;br /&gt;oMykad.getAddress2)&lt;br /&gt;lstData.AddItem ("getAddress3: " &amp; &lt;br /&gt;oMykad.getAddress3)&lt;br /&gt;lstData.AddItem ("getPostcode: " &amp; &lt;br /&gt;oMykad.getPostcode)&lt;br /&gt;lstData.AddItem ("getCity: " &amp; &lt;br /&gt;oMykad.getCity)&lt;br /&gt;lstData.AddItem ("getState: " &amp; &lt;br /&gt;oMykad.getState)&lt;br /&gt;lstData.AddItem ("getGender: " &amp; &lt;br /&gt;oMykad.getGender)&lt;br /&gt;lstData.AddItem ("getRace: " &amp; &lt;br /&gt;oMykad.getRace)&lt;br /&gt;lstData.AddItem ("getOldIDNum: " &amp; &lt;br /&gt;oMykad.getOldIDNum)&lt;br /&gt;lstData.AddItem ("getBirthPlace: " &amp; &lt;br /&gt;oMykad.getBirthPlace)&lt;br /&gt;lstData.AddItem ("getBirthDate: " &amp; &lt;br /&gt;oMykad.getBirthDate)&lt;br /&gt;lstData.AddItem ("getCitizenship: " &amp; &lt;br /&gt;oMykad.getCitizenship)&lt;br /&gt;lstData.AddItem ("getReligion: " &amp; &lt;br /&gt;oMykad.getReligion)&lt;br /&gt;lstData.AddItem ("getCardVer: " &amp; &lt;br /&gt;oMykad.getCardVer)&lt;br /&gt;lstData.AddItem ("getDateIssued: " &amp; &lt;br /&gt;oMykad.getDateIssued)&lt;br /&gt;lstData.AddItem ("getGreenCardExpiry: " &amp; &lt;br /&gt;oMykad.getGreenCardExpiry)&lt;br /&gt;lstData.AddItem ("getGreenCardNationality: " &lt;br /&gt;&amp;&lt;br /&gt;oMykad.getGreenCardNationality)&lt;br /&gt;'thumb print&lt;br /&gt;strFilename = "out/" &amp; strIDNum &amp; &lt;br /&gt;"_thumbright.txt"&lt;br /&gt;strResult = &lt;br /&gt;oMykad.getThumbRight(strFilename)&lt;br /&gt;lstData.AddItem ("ThumbPrintRight: " &amp; &lt;br /&gt;strFilename)&lt;br /&gt;Paste this command on the ReadMYKAD &lt;br /&gt;button click.&lt;br /&gt;Sample VB6 source code&lt;br /&gt;&lt;br /&gt;I have try to write the following to read the DLL file &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DECLARE mycardpro.mykad in mycardpro.dll string txtreader, string strLic  &lt;br /&gt;&lt;br /&gt;but i get the message " Cannot load 32-bit DLL"&lt;br /&gt;&lt;br /&gt;thanks.</description><author>William CK Cheng&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 09:54:14 +0100</pubDate></item><item><title>Reports and Printers: Reset laser printer row, column                                                                     </title><link>http://www.foxite.com/archives/0000256854.htm</link><guid>http://www.foxite.com/archives/0000256854.htm</guid><description>Version: FoxPro 2.x for MSDOS&lt;br /&gt;&lt;br /&gt;I am trying to get a laser printer to reset the row and column programatically.  I believe I have the correct printer codes ( Esc&amp;a#R for row and Esc&amp;a#C for column), but the printer does not seem to accept them.&lt;br /&gt;&lt;br /&gt;Here is the overall problem:  I am printing a document to a laser printer line by line using @x,y say blah to fill in a pre-printed form.  The program is set to break the document when it reaches line 55, print a footer on the current page starting on line 58, then go to the next page.  Seems simple.&lt;br /&gt;&lt;br /&gt;When the page has fewer than 55 lines the footer prints starting on the correct line.  When the page has more than 55 lines, the footer text prints one line lower than expected.  All of the footer prints in both cases, so I don't think it is a margin issue.&lt;br /&gt;&lt;br /&gt;The code is way simple:&lt;br /&gt;line = 58&lt;br /&gt;@ line, 1 say "Footer line one"&lt;br /&gt;&lt;br /&gt;My thought was that when the page is long internally the laser printer has moved past line 58 so it cannot "back up" to print the footer, but I am not sure if that is really the problem.&lt;br /&gt;&lt;br /&gt;Any ideas?  TIA for your help!&lt;br /&gt;Margaret</description><author>Margaret Duddy&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 19:01:01 +0100</pubDate></item><item><title>General VFP Topics: creating windows service using VFP                                                                  </title><link>http://www.foxite.com/archives/0000256853.htm</link><guid>http://www.foxite.com/archives/0000256853.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi All&lt;br /&gt;&lt;br /&gt;Can anyone explain about creating windows service.&lt;br /&gt;The DLL is created for reading a file that will be present at folder in the server.&lt;br /&gt;But i am facing problem in registering the dll as window serivice and setting the time intervel to execute the dll.&lt;br /&gt;&lt;br /&gt;Please help me regarding this.&lt;br /&gt;&lt;br /&gt;Thanks and Regards &lt;br /&gt;Renjith</description><author>Renjith Mattappallil&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 18:59:55 +0100</pubDate></item><item><title>General VFP Topics: WHERE clause is invalid                                                                             </title><link>http://www.foxite.com/archives/0000256858.htm</link><guid>http://www.foxite.com/archives/0000256858.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have query in form&lt;br /&gt;&lt;br /&gt;&lt;pre class='codeblock'&gt;tcWhere =&lt;font color="Black"&gt;"(EMPTY(I.DateVoided) OR I.DateVoided &amp;gt; CRep.AsOfDate) AND I.Amount &amp;lt;&amp;gt; I.PaidPosted and I.IsPosted and NOT I.EarlyInvoice and crep.currencycode"&lt;/font&gt;

&lt;font color="Blue"&gt;SELECT&lt;/font&gt; &amp;amp;lcFieldList. ;
		&lt;font color="Blue"&gt;from&lt;/font&gt; Company!ARInvoice I ;
			&lt;font color="Blue"&gt;inner&lt;/font&gt; &lt;font color="Blue"&gt;join&lt;/font&gt; Company!CV C &lt;font color="Blue"&gt;on&lt;/font&gt; C.CVCode = I.CVCode ;
			&lt;font color="Blue"&gt;LEFT&lt;/font&gt; &lt;font color="Blue"&gt;JOIN&lt;/font&gt; company!st S &lt;font color="Blue"&gt;ON&lt;/font&gt; I.stid = S.stid ;
			&lt;font color="Blue"&gt;LEFT&lt;/font&gt; &lt;font color="Blue"&gt;JOIN&lt;/font&gt; company!contact K &lt;font color="Blue"&gt;ON&lt;/font&gt; C.cvcode = K.cvcode &lt;font color="Blue"&gt;AND&lt;/font&gt; K.Source = &lt;font color="Black"&gt;"CV"&lt;/font&gt; &lt;font color="Blue"&gt;AND&lt;/font&gt; K.ismainbillto ;
			&lt;font color="Blue"&gt;INNER&lt;/font&gt; &lt;font color="Blue"&gt;JOIN&lt;/font&gt; company!terms T &lt;font color="Blue"&gt;ON&lt;/font&gt; I.termsid=T.termsid;
		&lt;font color="Blue"&gt;WHERE&lt;/font&gt; &amp;amp;tcWhere.;
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I get the error where clause is invalid. Please guide me to track down the where part error. I just added the last part newly "and crep.currecycode" and the error started&lt;br /&gt;&lt;br /&gt;Thank you</description><author>madhan mo&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 20:19:51 +0100</pubDate></item><item><title>Operating Systems: VFP .dbc residing on 64-bit file server                                                             </title><link>http://www.foxite.com/archives/0000256848.htm</link><guid>http://www.foxite.com/archives/0000256848.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Recently we moved the .dbc holding all the tables for our application from a Windows 2003 server to a windows 2008/64 bit server.&lt;br /&gt;Shortly afterward we began to experience data related issues such as corrupted indexes and "access denied - file is in use by another".&lt;br /&gt;After trouble shooting this over a period of a few months, we decided to move the .dbc back to it's original location and these errors have all but disappeared. I hesitate to assume that the problem is strictly because the .dbc/tables were served from a windows 2008/64 bit server.  &lt;br /&gt;&lt;br /&gt;Has anyone else had such issues or does anyone have any insight to offer on this?&lt;br /&gt;&lt;br /&gt;Any responses would be greatly appreciated!</description><author>Brian Gruselle&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 18:23:52 +0100</pubDate></item><item><title>Forms: Select Issue                                                                                        </title><link>http://www.foxite.com/archives/0000256689.htm</link><guid>http://www.foxite.com/archives/0000256689.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am having problems with the select below;&lt;br /&gt;&lt;br /&gt;select * from temp_abacus where "01 " $ keycode ;&lt;br /&gt;&lt;br /&gt;I want to select data from a file where "01" is contained in the column "keycode"&lt;br /&gt;&lt;br /&gt;the file type i am using is a CSV.&lt;br /&gt;&lt;br /&gt;I am getting the error "function argument value, type, or count is invalid"</description><author>sam parsons&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 11:00:29 +0100</pubDate></item><item><title>General VFP Topics: Service Pack Installed?                                                                             </title><link>http://www.foxite.com/archives/0000256670.htm</link><guid>http://www.foxite.com/archives/0000256670.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;Hello Experts!&lt;br /&gt;&lt;br /&gt;I've tried to find in archive for my answer but in vain. Regret for my impatience! This is very urgent. How would I know the VFP installed on my machine is having service pack and what version?&lt;br /&gt;&lt;br /&gt;My current VFP version is 06.00.8167.00 (VFP 6), but I do not know if this have any service pack installed. My project requires an answer to get a service pack installed soon if doesn't have.&lt;br /&gt;&lt;br /&gt;Also, please tell me what is the latest SP available for VFP6.0 and where I can get it (free or share).&lt;br /&gt;&lt;br /&gt;Please help me!&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jyotish</description><author>Jyothish KV&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 08:14:14 +0100</pubDate></item><item><title>Databases, Tables and SQL Server: New VFP - MYSQL Blog entry                                                                          </title><link>http://www.foxite.com/archives/0000256829.htm</link><guid>http://www.foxite.com/archives/0000256829.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;This one is on different aproaches used to optimize and transfer a query of medium complexity from VFP to MYSQL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Visit my blog at &lt;a target='_blank' href='http://mysqlblog.pirringers.com/' rel='nofollow'&gt;http://mysqlblog.pirringers.com/&lt;/a&gt;</description><author>Martin Pirringer&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 13:57:42 +0100</pubDate></item><item><title>Menus: Menu in Form                                                                                        </title><link>http://www.foxite.com/archives/0000256770.htm</link><guid>http://www.foxite.com/archives/0000256770.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear Sirs,&lt;br /&gt;&lt;br /&gt;How to create / design menu bar in a form? please guide.&lt;br /&gt;&lt;br /&gt;Thanking you,&lt;br /&gt;IRFAN</description><author>Mohammad Irfan&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 06:26:19 +0100</pubDate></item><item><title>Win32API programming: Set Drive Letter for pen drive                                                                      </title><link>http://www.foxite.com/archives/0000256782.htm</link><guid>http://www.foxite.com/archives/0000256782.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Whenever we insert our pen drive, the computer assigns one drive letter to a pen drive, say G: drive,&lt;br /&gt;which can change &amp; assign any letter of our choice (from computer management).&lt;br /&gt;&lt;br /&gt;Is it possible to assign/save drive letter for a pen drive from vfp program, say I want to assign drive letter O: for my pen drive. How to do this?&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.foxite.com/uploads/9fd4f3be-9e4d-4a51-8818-8b7866b36636.jpg"/&gt;</description><author>sanjay karia&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 07:58:43 +0100</pubDate></item><item><title>Windows 7 and VFP: Options not saving                                                                                  </title><link>http://www.foxite.com/archives/0000256755.htm</link><guid>http://www.foxite.com/archives/0000256755.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;When I set the options for my IDE in VFP 9 sp2 they remain set until I exit then re-enter the IDE.  After renetering the project the options are reset.&lt;br /&gt;&lt;br /&gt;When I click OK I get told that the options are being saved and no errors are displayed.  If I look at the options after saving them they are set to the value that I set them to.&lt;br /&gt;&lt;br /&gt;I am using Windows 7 Professional and my project folder is located as a top level folder on the drive.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thanks,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;pete</description><author>Pete Huish&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 04:34:28 +0100</pubDate></item><item><title>Win32API programming: Caption exe file                                                                                    </title><link>http://www.foxite.com/archives/0000256757.htm</link><guid>http://www.foxite.com/archives/0000256757.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;hello foxer mania&lt;br /&gt;I have a little problem with the use of the API.&lt;br /&gt;I want to get a "caption" of the exe program that I run?&lt;br /&gt;&lt;br /&gt;example.&lt;br /&gt;VFP command.&lt;br /&gt;&lt;pre class='codeblock'&gt;&lt;font color="Blue"&gt;Run&lt;/font&gt; setup.&lt;font color="Blue"&gt;exe&lt;/font&gt;
&lt;/pre&gt;, when the file is run, I want to get it what caption&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;haris</description><author>vece walet&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 04:54:07 +0100</pubDate></item><item><title>Errors &amp; Debugging: Breakpoints not breaking                                                                            </title><link>http://www.foxite.com/archives/0000256756.htm</link><guid>http://www.foxite.com/archives/0000256756.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;I have a some breakpoints set in my application on two different forms but in each case they are in the click event of a command button.  In one case the breakpoint will break yet in the other it will not.  Both breakpoint appear in the list of breakpoints.&lt;br /&gt;&lt;br /&gt;Is there some setting that I have missed?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thanks,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;pete</description><author>Pete Huish&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 04:40:27 +0100</pubDate></item><item><title>Projects and Design: Copy Folder to another location                                                                     </title><link>http://www.foxite.com/archives/0000256702.htm</link><guid>http://www.foxite.com/archives/0000256702.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Dear Sirs,&lt;br /&gt;&lt;br /&gt;How to copy a complete folder from one location to another within a program? If that would be a DOS command, kindly it should not display command prompt anyway.&lt;br /&gt;&lt;br /&gt;Thanking you,&lt;br /&gt;IRFAN</description><author>Mohammad Irfan&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 11:36:36 +0100</pubDate></item><item><title>Projects and Design: Making an EXE File that works                                                                       </title><link>http://www.foxite.com/archives/0000256655.htm</link><guid>http://www.foxite.com/archives/0000256655.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;I have a problem: I created a project in visual foxpro 9 and as far as i am concerned the application works just fine, but when i try to create an exe file out of the project the exe file would not run.  I encountered this problem before and so far was able to solve it by making the form into a modal type of form, but this time it does not work.  how do i solve this problem? this is really bothersome for i cannot deploy my application without compiling into an executable program.</description><author>Francis Albert Militante&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 01:23:16 +0100</pubDate></item><item><title>Databases, Tables and SQL Server: Date range 6 mths earlier from DATE90                                                               </title><link>http://www.foxite.com/archives/0000256754.htm</link><guid>http://www.foxite.com/archives/0000256754.htm</guid><description>Version: Visual FoxPro 6&lt;br /&gt;&lt;br /&gt;A select statement to give a date range 6 months earlier from the current date.&lt;br /&gt;&lt;br /&gt;For instance the current date is &lt;B&gt;&lt;B&gt;19/03/2010&lt;/B&gt; (i.e. 19/MAR/2010)&lt;/B&gt; hence the range &lt;br /&gt;&lt;br /&gt;should start 6 months earlier hence the begin date of the range should be &lt;B&gt;01/10/2009 (i.e. 01/OCT/2009)&lt;/B&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pls provide a select statement to help get the range.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks</description><author>Leonard Trevor&lt;invalid-address@foxite.com&gt;</author><pubDate>Fri, 19 Mar 2010 04:18:17 +0100</pubDate></item><item><title>Forms: Define Popup                                                                                        </title><link>http://www.foxite.com/archives/0000256721.htm</link><guid>http://www.foxite.com/archives/0000256721.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Can Anyone tell me tht &lt;br /&gt;      Can i Use "Define Popup" in form nt want to using Combobox</description><author>gaurav sharma&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 14:20:56 +0100</pubDate></item><item><title>General VFP Topics: Excel Sheet WordWrap                                                                                </title><link>http://www.foxite.com/archives/0000256674.htm</link><guid>http://www.foxite.com/archives/0000256674.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;How to WordWrap a Cell in ExcelSheet&lt;br /&gt;i am Exporting Data To Excel Sheet, For one Cell i want to Word Wrap.&lt;br /&gt;&lt;br /&gt;Shiva</description><author>shiva kumar&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 08:32:14 +0100</pubDate></item><item><title>General VFP Topics: RTL / LTR                                                                                           </title><link>http://www.foxite.com/archives/0000256745.htm</link><guid>http://www.foxite.com/archives/0000256745.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am the following code for RTL (Arabic system alignment I/F), I looking for a code to switch the I/F LTR what i mean to Latin orientation the code as follows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*-- Define extended Windows styles&lt;br /&gt;#DEFINE GWL_EXSTYLE -20&lt;br /&gt;#DEFINE WS_EX_LAYOUTRTL 0x400000&lt;br /&gt;#DEFINE WS_EX_NOINHERITLAYOUT 0x100000&lt;br /&gt;*-- Define the Get window long API&lt;br /&gt;DECLARE INTEGER GetWindowLong IN user32;&lt;br /&gt;INTEGER hWnd, INTEGER nIndex &lt;br /&gt;*-- Define the Set window long API&lt;br /&gt;DECLARE INTEGER SetWindowLong IN user32;&lt;br /&gt;INTEGER hWnd, INTEGER nIndex, INTEGER dwNewLong &lt;br /&gt;*-- Get this form's current style. &lt;br /&gt;OldLong = GetWindowLong(ThisForm.HWnd, GWL_EXSTYLE)&lt;br /&gt;*-- Set the window extended style RTL non-inheritable.&lt;br /&gt;SetWindowLong(ThisForm.HWnd,GWL_EXSTYLE,; &lt;br /&gt;BITOR(OldLong,WS_EX_LAYOUTRTL,WS_EX_NOINHERITLAYOUT))&lt;br /&gt;&lt;br /&gt;any help.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks</description><author>issam mansour&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 23:41:51 +0100</pubDate></item><item><title>Microsoft Office Automation: Reading Excel when file is read-only                                                                </title><link>http://www.foxite.com/archives/0000256742.htm</link><guid>http://www.foxite.com/archives/0000256742.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;I have a program that will open an excel file and retrieve the data from a particular cell from a particular sheet. My problem is that these files can be unpredictable. For example, a huge number of the files will pop up with a message saying "'filename.xls' is reserved by someuser. Enter password for write access, or open read only.".&lt;br /&gt;&lt;br /&gt;I have oExcel.DisplayAlerts = .F. which I was hoping would clear this up, but it doesn't. Is there any way to have every file open in read only mode and suppressing this message? Changing permissions of directories and the files themselves is out of the question because they're active files and users may be using them when the program tries to read from them.</description><author>Mat Howard&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 22:01:28 +0100</pubDate></item><item><title>Reports and Printers: Make letters in Bold in a report                                                                    </title><link>http://www.foxite.com/archives/0000256668.htm</link><guid>http://www.foxite.com/archives/0000256668.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;Hi, &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have a sentence to be printed on a report which will change dynamically. So i am using a single textbox conrol for it. How i can make only some of the words like email id/ telephone nos in bold letters among many words in a single sentence. Somebody pls help me if possible.</description><author>Chinchu Tharayil&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 07:32:03 +0100</pubDate></item><item><title>Reports and Printers: Input Data in Arabic                                                                                </title><link>http://www.foxite.com/archives/0000256667.htm</link><guid>http://www.foxite.com/archives/0000256667.htm</guid><description>Version: Visual FoxPro 9 SP2&lt;br /&gt;&lt;br /&gt;hai, &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I am using VFP 9.0. My default input language is English. Now i need to put some captions in Arabic in my reports. So i installed arabic language in my pc.&lt;br /&gt;But still i can not input data in arabic within my labels and text boxes. Somebody please help me to solve this problem. I can type in arabic in words and all.....pls help me</description><author>Chinchu Tharayil&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 07:20:39 +0100</pubDate></item><item><title>Projects and Design: With Endwith and SetFocus                                                                           </title><link>http://www.foxite.com/archives/0000256671.htm</link><guid>http://www.foxite.com/archives/0000256671.htm</guid><description>Version: Visual FoxPro 9&lt;br /&gt;&lt;br /&gt;Example :&lt;br /&gt;&lt;br /&gt;&lt;pre class='codeblock'&gt;oPFP1 = &lt;font color="Blue"&gt;Thisform&lt;/font&gt;.Pgf1.Page1

&lt;font color="Blue"&gt;WITH&lt;/font&gt; oPFP1

	&lt;font color="Blue"&gt;STORE&lt;/font&gt; &lt;font color="Black"&gt;'Edit'&lt;/font&gt; &lt;font color="Blue"&gt;TO&lt;/font&gt; &lt;font color="Blue"&gt;Thisform&lt;/font&gt;.pp_action

	&lt;font color="Blue"&gt;Thisform&lt;/font&gt;.mm_enbl_dsbl_new 

	&lt;font color="Blue"&gt;IF&lt;/font&gt; Vhbk.Soldthrgh == &lt;font color="Black"&gt;'DLR '&lt;/font&gt;		
		&lt;font color="Blue"&gt;STORE&lt;/font&gt; 1 &lt;font color="Blue"&gt;TO&lt;/font&gt; .Opg1.&lt;font color="Blue"&gt;Value&lt;/font&gt; 
	&lt;font color="Blue"&gt;ELSE&lt;/font&gt; 
		&lt;font color="Blue"&gt;STORE&lt;/font&gt; 2 &lt;font color="Blue"&gt;TO&lt;/font&gt; .Opg1.&lt;font color="Blue"&gt;Value&lt;/font&gt; 
	&lt;font color="Blue"&gt;ENDIF&lt;/font&gt; 

	&lt;font color="Blue"&gt;STORE&lt;/font&gt; Vhbk.Key_PK &lt;font color="Blue"&gt;TO&lt;/font&gt; Edtd_PK

	&lt;font color="Blue"&gt;Thisform&lt;/font&gt;.&lt;font color="Blue"&gt;Refresh&lt;/font&gt;()
	&lt;font color="Blue"&gt;Thisform&lt;/font&gt;.Grid1.&lt;font color="Blue"&gt;Refresh&lt;/font&gt;()

	.CmbDlrName.&lt;font color="Blue"&gt;SetFocus&lt;/font&gt;()

&lt;font color="Blue"&gt;ENDWITH&lt;/font&gt; 
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;OR  &lt;br /&gt;&lt;br /&gt;Thisform.Pgf1.Page1.CmbDlrName.SetFocus()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is the better way of Focusing to any control within With Endwith or outside With Endwith</description><author>Khurram Tahir&lt;invalid-address@foxite.com&gt;</author><pubDate>Thu, 18 Mar 2010 08:20:07 +0100</pubDate></item></channel></rss>