Visual FoxPro General ForumQuestions and discussions about developing with Visual FoxPro 9.0 - including language, IDE, designers, data, .NET interoperability, and more.© 2009 Microsoft Corporation. All rights reserved.Sat, 28 Nov 2009 10:31:29 Z92afcc91-0f79-4ff3-8329-6cbd63d3f871http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/bc692417-7623-4b07-8019-30f0f02f9604http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/bc692417-7623-4b07-8019-30f0f02f9604Gamindahttp://social.msdn.microsoft.com/Profile/en-US/?user=GamindaWriting months as field name, as user selects the start month Hi all good day, I wanted to enter month as tee field of a table once the user selects the first month as he wish. E.g. If user enters March, I want to enter rest of the months as field names of a table including the month that the user entered.<br/> <br/> Thanks<br/>  Sat, 28 Nov 2009 10:31:29 Z2009-11-28T10:31:29Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/2ae7a648-9bef-4e42-8fe5-78d92e96635dhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/2ae7a648-9bef-4e42-8fe5-78d92e96635dTariq Iftikharhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tariq%20Iftikharprogressbar in select statement<span style="font-size:x-small;color:#0000ff;font-family:Courier New"><span style="font-size:x-small;color:#0000ff;font-family:Courier New"><span style="font-size:x-small;color:#0000ff;font-family:Courier New"><span style="font-size:x-small;color:#0000ff;font-family:Courier New"><span style="font-size:x-small;color:#0000ff;font-family:Courier New"><span style="font-size:x-small;color:#0000ff;font-family:Courier New"> <p><strong>Hi,<br/>Following is my select statement. How can I give a progressbar to this select.<br/>select m.hdrid, ;<br/></strong></p> </span></span></span></span></span></span><span><span style="font-size:x-small;font-family:Courier New"><strong> trn.stockid, ;<br/> trn.taxid, ;<br/> trn.itemname, ;<br/> trn.qty, ;<br/> trn.location, ;<br/> trn.profit, ;<br/> trn.salerate, ;<br/> trn.amount, ;<br/> trn.shortpty, ;<br/> stk.batchno, ;<br/> stk.expiry, ;<br/> stk.mrp, ;<br/> stk.cmrp, ;<br/> stk.itemcode, ;<br/> stk.purrate, ;<br/> stk.cpurrate, ;<br/> stk.landing, ;<br/> stk.itc, ;<br/> stk.taxcode, ;<br/></strong></span><span style="font-size:x-small;color:#0000ff;font-family:Courier New"><span style="font-size:x-small;color:#0000ff;font-family:Courier New"><strong>from &amp;r_trn trn,&amp;r_stk stk ;<br/>where m.hdrid=trn.hdrid and trn.stockid=stk.stockid ;<br/>order by 1 ;<br/></strong></span></span></span><span style="font-size:x-small;font-family:Courier New"><span style="font-size:x-small;font-family:Courier New"><strong>into dbf tmp</strong></span></span>Fri, 27 Nov 2009 18:35:55 Z2009-11-28T06:45:30Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/e46808f2-9c2d-4007-bf85-77521c5364b9http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/e46808f2-9c2d-4007-bf85-77521c5364b9Young_foxhttp://social.msdn.microsoft.com/Profile/en-US/?user=Young_foxvfp report to pdf or wordi wanted my report from vfp to be converted to pdf, excel or in word format. what should i do?<br/>please help<br/>Fri, 27 Nov 2009 03:10:26 Z2009-11-28T02:38:08Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/18b1593d-4de6-4817-91cc-39fea78b8d34http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/18b1593d-4de6-4817-91cc-39fea78b8d34Young_foxhttp://social.msdn.microsoft.com/Profile/en-US/?user=Young_foxuse commandhi<br/><br/>how to close an open table because i have encountered an error 'table or alias is already open'<br/><br/>kindly evaluate my ocdes below;<br/><br/>command button<br/>proceedure click<br/><br/>use c:\table<br/>set filter to fieldname=trim(erika)<br/>report form reports\report1 prev<br/><br/>the error occure when i click the button for the second time. <br/>what should i do?<br/><br/>thanks in advance<br/>Sat, 28 Nov 2009 01:56:15 Z2009-11-28T01:56:15Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/a6727605-8955-4dd1-9279-9d7e954fac3ehttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/a6727605-8955-4dd1-9279-9d7e954fac3eJohnseitohttp://social.msdn.microsoft.com/Profile/en-US/?user=JohnseitoHow to lock a program from edit, reading and delete?Is there a way to lock a program that reside in the drive folders from edit, read, and delete but can still use it to run when needed? thanksFri, 27 Nov 2009 15:34:37 Z2009-11-27T23:07:33Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/75a2788a-2c75-44ad-b235-46d9b4ca6ad5http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/75a2788a-2c75-44ad-b235-46d9b4ca6ad5Johnseitohttp://social.msdn.microsoft.com/Profile/en-US/?user=JohnseitoHow do you shift a column in Foxpro table as you would do in excelwhat is the command to do that?  shift up and down, etc??  shift but have the top heading as it is.<br/> <br/> ThanksThu, 26 Nov 2009 11:37:14 Z2009-11-27T20:06:20Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9b539f70-4110-44fd-a9ca-8b605fcab36ehttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9b539f70-4110-44fd-a9ca-8b605fcab36eneetu singh 123http://social.msdn.microsoft.com/Profile/en-US/?user=neetu%20singh%20123C#disadvantage of goto inC#?Fri, 27 Nov 2009 07:10:38 Z2009-11-27T20:02:10Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9ceb5acd-91d5-4624-98a1-3bd4a7ccab96http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9ceb5acd-91d5-4624-98a1-3bd4a7ccab96bgr123http://social.msdn.microsoft.com/Profile/en-US/?user=bgr123vfp8 + pdfcan i generate a pdf report from vfp8? how?Fri, 27 Nov 2009 15:28:40 Z2009-11-27T17:57:59Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/c9ca385c-b539-4d43-988e-0dc7277d0a0ahttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/c9ca385c-b539-4d43-988e-0dc7277d0a0aLarry_Nuñezhttp://social.msdn.microsoft.com/Profile/en-US/?user=Larry_Nu%u00f1ezWhat .DLL files are needed to run VFP 9.0 without installing VFP package?I want to know where I can find the .dll files and which are the ones I need to run VFP in system without installing the package.Thu, 26 Nov 2009 14:57:50 Z2009-11-27T15:04:18Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/97363778-75ea-4e70-a32e-83aea0ea0574http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/97363778-75ea-4e70-a32e-83aea0ea0574priscilla_muishttp://social.msdn.microsoft.com/Profile/en-US/?user=priscilla_muisWhat steps should I take to upgrade visual foxpro 8.0 to 9.0?Hello, I have to upgrade visual foxpro 8.0 to 9.0. I've never done this before and I don't know if I should just download 1 file or more. My databse is also made in visual foxpro (not by me) and I don't want to do something that will create a headache for me. Please help!Wed, 18 Nov 2009 11:23:13 Z2009-11-27T13:02:55Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/363ed4b5-9a68-49ab-8fa2-397e545d7d02http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/363ed4b5-9a68-49ab-8fa2-397e545d7d02Vishal Goyalhttp://social.msdn.microsoft.com/Profile/en-US/?user=Vishal%20GoyalIncremental search in foxpro 9.0I am developing an application in which i need incremental search for data stored in database. I have developed one but it uses another form with text box and listbox and opens in another window.<br/><br/>I want that when the user enters the text box , list will appear on the same window just below the text box and as the user types any character it will highlight the matching data and i also want to use uparrow and downarrow key to move in the list up and down while remaining in text box. <br/><br/>Can anybody help ? I will be very thankful. it is very important to me. <br/><br/>thanks,Tue, 18 Aug 2009 14:23:02 Z2009-11-27T07:50:25Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9b9e13fb-3c82-4550-8b72-b5da44b4cbe1http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9b9e13fb-3c82-4550-8b72-b5da44b4cbe1Tariq Iftikharhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tariq%20Iftikharsaving data in multiuser invironmentDeare Experts,<br/>I have posted questions to this forum to understand buffering,locking,tableupdate() etc<br/>to save my data in multiuser invironment. Many things cleared to me by getting your<br/>valuabl replies but still I am confused. I am repeating one of my questions. So please do not<br/>say &quot;Don not repeat a question&quot;. I could not understand how to save data,where to start<br/>from so that data clash between users could be avoided. So I am giving deltailed information<br/>of my invironment. Please give me a guideline in my given invironment so that I could<br/>accomplish my work. Following is my detailed environment.<br/><br/>1-I have six dbf tables opened in init() of the form. some tables opened 2 times and 3 times<br/>   whith differnt alias in order to set relation between tables and index.<br/>2-hdrtable,trntable,stocktable,partytable,leadgertable,gettaxtable<br/>3-two cursors tmp and tmp3<br/>4-hdrtable,trntable and leadertable is linked with common table field hdrid<br/>5-hdrtable stores information of the invoice<br/>6-trntable stores information of invoice items<br/>7-stockfile stores stock quantities and other information.<br/><br/>When user clicks for new invoice, he is given blank fields to fill.<br/>cursor tmp stores invoice items filled by user and finally to save to trnfile.<br/><br/>When use is finished and clicks save button.<br/>1-I have to generate hdrid and replace hdrid in tmp cursor<br/>2-I have to save one new record in hdrfile<br/>3-I have to save new records to trnfile from tmp cursor<br/>4-I have to save one new record to gettaxfile from tmp3 cursor<br/>5-I have to save one new record to leaderfile<br/>6-I have to update party balance in partyfile<br/>7-I have to deduct sold quantities from stockinhand quantity in stockfile<br/><br/>Above is the invironment, I have to save. Should I enable buffering when user<br/>clicks for new invoice? Please help me.<br/>Thanking you all in anticipation.<br/>Wed, 25 Nov 2009 19:13:06 Z2009-11-27T18:15:55Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/da9b1ea1-7357-4662-88e5-64627bff0c14http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/da9b1ea1-7357-4662-88e5-64627bff0c14Clinkiehttp://social.msdn.microsoft.com/Profile/en-US/?user=ClinkieCannot retrieve remote data from all network computers?I developed a paging program that sends specific information to a transmitter. Works well, however moving forward I now need a client to access the data over the network. The client locates and connects via a TCP connection which I broadcast back the network path for data retrieval, ie <a>\\computername\c\programdir\</a> and stored in variable cDataPath.<br/>I've attempted to retrieve this remote data with various methods.<br/>* Using the vfpoledb...ADODB.connection <br/>* Using SQL SELECT Method <br/>* APPEND Method <br/>All methods use cDataPath in their constructs. After creating a distrib. version and installed, the client connects but fails to retrieve data. Here is the Mystery, it works here, all methods??? All 10 computers, some XP, some VISTA on our network function as expected. I did bring in a couple labtops, wirelessly hooked to the LAN, however they also failed to retrieve data. <br/>Any ideas on what may be causing the malfunction, PLS HELP.<br/><br/>Regards:<br/>Clink<br/><br/><br/>Wed, 25 Nov 2009 20:08:32 Z2009-11-27T21:09:48Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/cf7c7fb8-4a98-4a5b-ab21-84cd6c3a608dhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/cf7c7fb8-4a98-4a5b-ab21-84cd6c3a608dPeyton Toddhttp://social.msdn.microsoft.com/Profile/en-US/?user=Peyton%20ToddHow do I get the right driver to access VFP 6 via ODBC?Hello. I'm trying to access a VFP 6.0 database via ODBC, and when I try to point ODBC to it, I receive a message saying &quot;You must first install the current version of the VFP ODBC driver.&quot; It then gives me a url to go to, which turns out to be defunct, but I have gathered from exploring the MSDN site that one could maybe get by with a VFP ODBC driver (which is not well supported), or go to the OLEDB driver. However, there seem to be a bewildering variety of them and it's hard to find the exact one to go with.<br/> <br/> I have managed to download both VFPOLEDB.MSM and VFPODBC.MSM. However, when I click on them, my computer tells me it doesn't know what program to run an MSM file with, nor does a search on the web report the answer.<br/> <br/> I have a working version of this app on another computer, and on that computer, neither VFPODBC.DLL nor VFPOLEDB.DLL is to be found in WINDOWS/SYSTEM nor anywhere else. However, that computer does have Visual Studio 2005 installed on it. I could install Visual Studio 2005 on this second computer (if that's legal), but I'd rather solve the problem as simply as possible since this computer doesn't need Visual Studio (nor, as it turned out, did the other computer).<br/> <br/> What should I do?<br/> <br/> Thanks for your help,<br/> <br/> Peyton Todd<br/>Wed, 25 Nov 2009 21:19:35 Z2009-11-26T23:16:04Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/5f2007bc-ef5a-44fb-a18c-cc12e5ab06a7http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/5f2007bc-ef5a-44fb-a18c-cc12e5ab06a7Larry_Nuñezhttp://social.msdn.microsoft.com/Profile/en-US/?user=Larry_Nu%u00f1ezCoverting a numeric value to a character with the str() finction.When I do convert the a few numeric expression to a character and add them to put them together , then insert it into a textbox, Why does it have so many spaces in between them. How do I get rid of these spaces?Thu, 26 Nov 2009 17:22:42 Z2009-11-26T21:39:17Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/d18f5b7b-58ed-4dd3-94ff-9153230ba204http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/d18f5b7b-58ed-4dd3-94ff-9153230ba204NishuGhttp://social.msdn.microsoft.com/Profile/en-US/?user=NishuGWindows 7 and VFP 8Hi :) <div><br/></div> <div>I can not install VFP 8 on Windows 7[Evaluation Copy].</div> <div><br/></div> <div>Can anyone help ?</div> <div><br/></div> <div>Thanks in advance</div> <div>Nishu</div>Thu, 26 Nov 2009 12:11:04 Z2009-11-26T13:58:19Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/b54327f4-632a-419d-a8a4-b1b433de5be9http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/b54327f4-632a-419d-a8a4-b1b433de5be9percybhaihttp://social.msdn.microsoft.com/Profile/en-US/?user=percybhaiproblem with on selection of combo box listitem in the grid Hi experts,<br/> I have added combo box dynamically to the grid.like looping through the cursor and adding the combo boxes to the grid.but once a particular list item is select in the combox, all the comboxes in the rows of the grid are showing the same list item.Instead I want the selected list item be shown in only that perticular combox of the row and change the columns of that row accordingly.please help<br/> <br/> thanks<br/> Percy<br/>Wed, 25 Nov 2009 14:02:02 Z2009-11-26T13:49:24Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/79436419-5dff-4e1a-96f8-2de1898503c5http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/79436419-5dff-4e1a-96f8-2de1898503c5balkishanhttp://social.msdn.microsoft.com/Profile/en-US/?user=balkishanImporting data from 30 datafiles from a file named Flowdata.xlsx at one click of a buttonhello,<br/> <br/> There are 23 Excel workbooks contaning data.In addition , there is a workbook that contains this data.This workbook is callede Data.xlsx.I want to develop a macro to IMPORT all the daat from the 23 datafiles at the click of a button.Also, this macro should be able to do this when placed in the same folder as the 23 data files.<br/> <br/> kindly  help.Fri, 20 Nov 2009 20:43:56 Z2009-11-26T10:39:33Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/e1cbb522-d38a-4e43-99d6-40d11842dccehttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/e1cbb522-d38a-4e43-99d6-40d11842dcceYoung_foxhttp://social.msdn.microsoft.com/Profile/en-US/?user=Young_foxcannot find local table or alias<span style="font-size:x-small;color:#0000ff;font-family:Courier New"> <p>hi,</p> <p>i have issued ths code in a timer  to check the value of a table evry 5 sec but i have encountered error &quot; table or alias is not found&quot;</p> <font face="Courier New" size=2 color="#0000ff"> <p>I  have tried using &quot;use command&quot; and select but still it has the same error<br/><br/>the form in which has the timer is in showwindow=1 and in top level form<br/>any correction on the codes below to correct it is highly appreciated.<br/><br/>thanks.<br/><br/>SELECT</p> </font></span> <p><span style="font-size:x-small;font-family:Courier New">local_user <p>levelx=level1</p> </span></p> <span style="font-size:x-small;color:#0000ff;font-family:Courier New"><font face="Courier New" size=2 color="#0000ff"> <p>PUBLIC</p> </font></span> <p><span style="font-size:x-small;font-family:Courier New">so2</span></p> <span style="font-size:x-small;color:#0000ff;font-family:Courier New"><font face="Courier New" size=2 color="#0000ff"> <p>SELECT</p> </font></span> <p><span style="font-size:x-small;font-family:Courier New">alert1 <p>xx=status1</p> </span></p> <span style="font-size:x-small;color:#0000ff;font-family:Courier New"><font face="Courier New" size=2 color="#0000ff"> <p>IF</p> </font></span> <p><span style="font-size:x-small;font-family:Courier New">xx=1<font face="Courier New" size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff;font-family:Courier New">DO CASE<font face="Courier New" size=2 color="#0000ff"> <p>case</p> </font></span></p> <p><span style="font-size:x-small;font-family:Courier New">levelx=9<font face="Courier New" size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff;font-family:Courier New">DO FORM forms</span><span style="font-size:x-small;font-family:Courier New">\genei<font face="Courier New" size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff;font-family:Courier New">ENDCASE <p>ENDIF</p> </span></p>Thu, 26 Nov 2009 09:50:33 Z2009-11-26T09:50:34Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/fe5c1d0e-b6c5-4995-880a-1a0b10de8df0http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/fe5c1d0e-b6c5-4995-880a-1a0b10de8df0Lighteninghttp://social.msdn.microsoft.com/Profile/en-US/?user=Lighteninghow to tell the position of my cursor?I wish to find out the position of my blicking cursor on a string so that I could cut whatever before that. What is the actual value for the cursor position. We had readkey() or something else to find our the asc value?<br/>Thanks and have a nice holiday.Wed, 25 Nov 2009 23:56:22 Z2009-11-26T02:12:09Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/849013ca-e768-4cef-b0d0-5a826f3d33a5http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/849013ca-e768-4cef-b0d0-5a826f3d33a5Little Foxhttp://social.msdn.microsoft.com/Profile/en-US/?user=Little%20FoxStarting an applicationHi,<br/>i want to develope an inventory application. How should i start.<br/>i know to create form and place controls on the form.<br/>Wed, 25 Nov 2009 20:18:37 Z2009-11-26T08:29:18Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/cdec8cdc-3243-4ad1-89ac-d5b3261e5cc5http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/cdec8cdc-3243-4ad1-89ac-d5b3261e5cc5percybhaihttp://social.msdn.microsoft.com/Profile/en-US/?user=percybhaihow to print the excel sheet content from vfp code?Hi Experts,<br/> <br/> I have a requirement to print the contents of the grid to excel and then print the grid content on the paper.<br/> i able to export the content to the excel. but,<br/> As by printing the columns of the grid by using the ? and ?? commands im getting the printout with no proper alignment of the columns.Is there any way to print directly the exported content of the excel instead of using the ? and ?? commands to print?Wed, 25 Nov 2009 14:44:11 Z2009-11-25T15:00:18Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/4fa80c42-9111-460d-bba1-01314896a550http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/4fa80c42-9111-460d-bba1-01314896a550Young_foxhttp://social.msdn.microsoft.com/Profile/en-US/?user=Young_foxvfp popupshi, i was trying to make some pop ups or alarm which reminds a user of something to do. i have seen one in which a genie will come out from a screen and will diplay some text message reminding you of somthing. Can i do it in vfp? if so, can anyone help me with this.  Any help on this regard is a big help to my project.... tnxTue, 24 Nov 2009 05:46:30 Z2009-11-27T03:19:33Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/872112cd-27d6-4efc-afed-93ad9bd4aeb5http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/872112cd-27d6-4efc-afed-93ad9bd4aeb5wgrothhttp://social.msdn.microsoft.com/Profile/en-US/?user=wgrothVFP, Win7; Install Shield window is BEHIND browserI try to sell a couple of Visual Foxpro (VFP9, sp2) apps online.  Everything seems to work with Win 7, BUT.....<br/><br/>The Install Shield Express VFP Special Edition window is behind the browser window.  Users think the download button does not work.  When the browser is minimized the, the Install Shield window shows itself, but by this time a sale is lost.<br/><br/>Any suggestions? Thanks.<br/>Walter Mon, 23 Nov 2009 04:04:55 Z2009-11-27T06:53:37Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/fa899d11-36c1-4169-a252-33bb3f91ad95http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/fa899d11-36c1-4169-a252-33bb3f91ad95Johnseitohttp://social.msdn.microsoft.com/Profile/en-US/?user=JohnseitoHow do you select a file in FoXpro and add fields and change the width of fields??How do you do this in a command and save it as a program is what I mean.  I was able to do this manually, which is after you import the file into fox pro, then you would select that file, the file that you want to add fields too, by set, then select the file, click on the file, then do modify structure, then you could add fields and change the width.<br/> <br/> Now how do you do this as command??  the recorder won't do this for you<br/> <br/> Thank you!!Wed, 25 Nov 2009 01:11:14 Z2009-11-25T12:10:26Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/6b80a5ce-a506-4e39-b6ed-fabecdfc1669http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/6b80a5ce-a506-4e39-b6ed-fabecdfc1669RavindraPatilhttp://social.msdn.microsoft.com/Profile/en-US/?user=RavindraPatilhow to close cdx fileDear friends,<br/><br/>I have a form. A grid is based on  local table. The table is indexed on 6 columns and the indices are kept in a temp.cdx file.<br/>When I run the form many times the cdx file becomes bulky. So I used DELETE FILE TEMP.CDX in BeforeOpenTables in form.realease event. <br/>When I run the form for the first time it runs ok. but at subsequent instance the above delete statement gives an error 'The file is in use,'<br/>So, how to close the cdx file?<br/>I tried ;<br/>if used('temp')<br/>   sele temp<br/>   use<br/>endif<br/>in form.release method but it is not working,<br/>  Wed, 25 Nov 2009 09:31:19 Z2009-11-25T12:04:49Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/8c7a6310-0c98-47df-934c-0b7c476d118dhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/8c7a6310-0c98-47df-934c-0b7c476d118dLarry_Nuñezhttp://social.msdn.microsoft.com/Profile/en-US/?user=Larry_Nu%u00f1ezShould begin transaction...end transaction be used only when updating more than 1 tables at the same time?Is the begin transaction really needed to update a table. What are other pointers to &quot;fine tune&quot; a multi-user environment.Mon, 23 Nov 2009 17:10:12 Z2009-11-26T15:30:24Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/c8381234-7d16-483d-a958-c816a0c86d66http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/c8381234-7d16-483d-a958-c816a0c86d66MitjaMohttp://social.msdn.microsoft.com/Profile/en-US/?user=MitjaMoHow to print A5 RotatedI have Windows XP SP3, VFP 9 SP1.<br/> The printer is dot matrix. The paper is endless pre-printed with some form<br/> format A5 with width 210mm and with perforation at each 148mm.<br/> How can create Report for this paper? In Page Setup there is also offered A5<br/> format but I do not know how to exchange width with height. To set<br/> Orientation from Portrait to Landscape is not solution because the format<br/> remains the same just printing is upright. <br/> In my &quot;Print Server Properties&quot; I found 187 forms and among them also<br/> exactly the form I want. His name is &quot;A5 Rotated&quot;. So I already have<br/> requested form and I suppose that it will be at the customer's PC too.<br/> <br/> I had defined my default printer to Epson FX-80 ( yes, very old printer )<br/> and in my VFP &quot;Page Setup&quot; was offered just few ( 6 ) of them : A4, A5,<br/> B5(JIS), Fontfold 8,5 x 12 in, Legal, Letter. Then I changed  default printer <br/> to Fax and &quot;magicaly&quot; there appeared all forms in VFP's &quot;Page Setup&quot; and I <br/> could choose my desired form.<br/> <br/> In my PC work fine although my Epson haven't declared &quot;A5 Rotated&quot; form. <br/> My friend has HP printer and he get wrong report! I have Page footer at <br/> the end of rotated A5 form ( middle of A4 form ) but friend got <br/> Page footer at the end of A4 form ( to much space between Group footer <br/> and Page footer ) ! ! ! <br/> <br/> This is Expr field from this FRX when &quot;Save printer environment&quot; is on :<br/> DRIVER=winspool<br/> DEVICE=Fax<br/> OUTPUT=SHRFAX:<br/> ORIENTATION=0<br/> PAPERSIZE=78<br/> DEFAULTSOURCE=15<br/> PRINTQUALITY=120<br/> YRESOLUTION=144<br/> <br/> and with &quot;Save printer environment&quot; is off :<br/> ORIENTATION=0<br/> PAPERSIZE=78<br/> COLOR=2<br/> <br/> I tried to save with and without &quot;Save printer environment&quot; but with no<br/> result. He constantly got to much space between Group footer and Page<br/> footer. Any suggestions?<br/> <br/> I have a question : how could I print &quot;A5 Rotated&quot; form in whichever printer? <br/> I look everywhere but I don't see how can I do this. <br/> <br/> TIA<br/> Mitja <br/>Mon, 23 Nov 2009 17:03:20 Z2009-11-24T15:37:56Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/f6e4a5a0-386b-44cd-9dcd-dc253756137bhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/f6e4a5a0-386b-44cd-9dcd-dc253756137bTariq Iftikharhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tariq%20Iftikharstatus of cursorsetprop()Hi,<br/>What are the conditions in which cursorsetprop() return .f.<br/>Should I add an error routin after issuing cursorsetprop().<br/>Mon, 23 Nov 2009 20:02:00 Z2009-11-24T12:29:36Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/4a19a822-e304-4c47-8d8f-e1bde7deb9cehttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/4a19a822-e304-4c47-8d8f-e1bde7deb9ceLarry_Nuñezhttp://social.msdn.microsoft.com/Profile/en-US/?user=Larry_Nu%u00f1ezHow do I skip a column just when I press enter in a grid.I want to skip a column in a grid. What r the commands to do that? I know it should be done in the columns text.Mon, 23 Nov 2009 21:13:29 Z2009-11-24T13:09:32Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9d395f3b-c30c-45c2-980f-ff6a39cc8a41http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/9d395f3b-c30c-45c2-980f-ff6a39cc8a41Tariq Iftikharhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tariq%20IftikharAdding a new record to a tableHi Experts,<br/>How a new record will be added to a table useing rlock(),cursorsetprop(),tableupdate() etc.<br/>Please elaborate.<br/><br/>Tue, 24 Nov 2009 03:06:08 Z2009-11-24T12:53:27Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/509709ba-17ca-4178-85ec-4cf0d26ca8f4http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/509709ba-17ca-4178-85ec-4cf0d26ca8f4Tariq Iftikharhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tariq%20IftikharTableupdate() not responding<p>Hi</p> <p>Following command I issue.</p> <p>set multilocks on<br/>use mytable.dbf alia mytable in 0 shared<br/>go top<br/>scatt memv<br/>cursorsetprop(&quot;buffering&quot;,5,&quot;mytable&quot;)<br/>set reprocess to 1<br/>rlock(&quot;1&quot;,&quot;mytable&quot;)<br/>tableupdate(1,.f.,&quot;mytable&quot;)<br/>data does not save to mytable.dbf<br/>but when I issue replace mytable.code with m.code before tableupdate()<br/>data saved to mytable.dbf.<br/>What is wrog?<br/>Please</p>Mon, 23 Nov 2009 17:43:01 Z2009-11-24T18:22:32Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/5d7412eb-56fd-4c61-bb1b-fe3ca8aed139http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/5d7412eb-56fd-4c61-bb1b-fe3ca8aed139Tariq Iftikharhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tariq%20Iftikharcoying a file in multiuser invironmentHi all,<br/>In betwin my program at defferent places I have to copy a single or multiple files.<br/>or I have to use  select * in muliuser invironment.<br/>How I handle this situation while other users may lock files?<br/>Please.Tue, 24 Nov 2009 10:35:44 Z2009-11-24T13:13:53Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/3e710153-1d0e-4257-b2ed-fe1d9a1f9366http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/3e710153-1d0e-4257-b2ed-fe1d9a1f9366percybhaihttp://social.msdn.microsoft.com/Profile/en-US/?user=percybhaihow to make a row in the grid readonly?im using the following code<br/> LOCAL lbReadOnly <br/>              lbReadOnly = (Earn_Type==7)<br/>                  thisform.grid1.SetAll([ReadOnly],lbReadOnly , [column])<br/> <br/> but it makes the column readonly.I want to make a perticular row as readonly when the Earn_Type column has the text has 7.how to do this?<br/>Mon, 23 Nov 2009 12:44:47 Z2009-11-25T07:59:14Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/67bcd85d-207f-42a6-a55a-04561e5f8eeahttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/67bcd85d-207f-42a6-a55a-04561e5f8eeaLarry_Nuñezhttp://social.msdn.microsoft.com/Profile/en-US/?user=Larry_Nu%u00f1ezHow do I "fine tune" a multiuser environment for it´s best performance.I want 2 know if there are anymore pointers on how to fine tune a multi-user application. Other than private datasessions in forms, DE tables buffered to 5, set exclusive off commands. What other issues should I make sure are correct and assures me quality performance.Mon, 23 Nov 2009 17:14:59 Z2009-11-23T20:57:03Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/bef38900-56d1-43eb-8797-5e1a6b43ddf5http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/bef38900-56d1-43eb-8797-5e1a6b43ddf5neetu singh 123http://social.msdn.microsoft.com/Profile/en-US/?user=neetu%20singh%20123C#inC# language what r default values for the following data types:  longint,char,string,byte,double,float of these datd typesMon, 23 Nov 2009 09:00:57 Z2009-11-24T08:21:56Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/4aab4588-bad1-4231-a282-8cba0cc5156ehttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/4aab4588-bad1-4231-a282-8cba0cc5156eneetu singh 123http://social.msdn.microsoft.com/Profile/en-US/?user=neetu%20singh%20123C#if u r having two for loop statement one inside &amp;the other then how to break the outer loop&amp;inner loopMon, 23 Nov 2009 08:56:28 Z2009-11-24T08:19:23Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/12fcabe5-b6c2-40b4-81b9-cf5cef6fd935http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/12fcabe5-b6c2-40b4-81b9-cf5cef6fd935percybhaihttp://social.msdn.microsoft.com/Profile/en-US/?user=percybhaihow to print the grid in foxproHi,<br/> <br/> I'd like to print all the content of a DataGrid  and the text box contents in a single page. How would something like this be done? I couldn't find any code examples.<br/> <br/> Thanks<br/> <br/> PercySun, 22 Nov 2009 06:35:43 Z2009-11-27T05:59:43Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/22929db6-dc68-4878-afcd-832f20c2c0b6http://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/22929db6-dc68-4878-afcd-832f20c2c0b6Tariq Iftikharhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tariq%20IftikharSaving data in multi-user invironmentHi all,<br/><br/>I have 6 tables involved in sales bill entry. I have written code in load() as follows:<br/><br/>set multilocks on<br/>use table1 in 0 shared<br/>use table2 in 0 shared<br/>use table3 in 0 shared<br/>use table4 in 0 shared<br/>use table5 in 0 shared<br/>use table6 in 0 shared<br/>cursorsetprop(&quot;buffering&quot;,5,&quot;table1&quot;)<br/>cursorsetprop(&quot;buffering&quot;,5,&quot;table2&quot;)<br/>cursorsetprop(&quot;buffering&quot;,5,&quot;table3&quot;)<br/>cursorsetprop(&quot;buffering&quot;,5,&quot;table4&quot;)<br/>cursorsetprop(&quot;buffering&quot;,5,&quot;table5&quot;)<br/>cursorsetprop(&quot;buffering&quot;,5,&quot;table6&quot;)<br/><br/>Now when user will click save button, I have to save data.<br/>should I use tableupdate() or<br/>befor issuing tableupdate(), I should issue flock() and set reprocess to ..Sun, 22 Nov 2009 16:52:01 Z2009-11-23T16:40:38Zhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/5c68453f-f13e-48fa-8676-e93901110ecdhttp://social.msdn.microsoft.com/Forums/en-US/visualfoxprogeneral/thread/5c68453f-f13e-48fa-8676-e93901110ecdjasveehttp://social.msdn.microsoft.com/Profile/en-US/?user=jasveelandscape printingHi experts<br/><br/>I am using vfp9 and want to print some reports using &quot;?&quot; OR &quot;??&quot; on landscape paper. How can I send reports on landscape paper without calling pagesetup.<br/><br/>thanks in advanceSun, 22 Nov 2009 10:26:52 Z2009-11-27T06:13:12Z