Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dsandlin
  • Content: Threads
  • Order by date
  1. dsandlin

    How to register VFPOLEDB.1?

    I'm trying to access VFP tables from a C# project, using a connection string that contains "Provider=VFPOLEDB.1;". It works on one machine, but on another machine the same code produces an error that "Provider is not registered on the local machine." How do I make sure that the provider is...
  2. dsandlin

    How to register VPOLEDB.1?

    I am using C# to access Visual Fox Pro data. My connection string contains the clause "Provider=VFPOLEDB.1;" and a data source clause. The code works on one machine, but on another one I get the error message, "Provider is not registered on the local machine." How can I make sure that the...
  3. dsandlin

    Help with random control loss in WinForms?

    I've been using subclassed controls with WinForms and sometimes, apparently randomly, after a Build, one of the controls on the form will be missing. It has happened with comboboxes, labels, and buttons. When I look at the code view, the control is still there, but it has been put to 0,0 with...
  4. dsandlin

    Need a numeric verbalizer: 1210 to One thousand two hundred and ten.

    I'm making a check writer report and I need a function to convert numbers into verbal descriptions (e.g., 1210.25 into "One thousand two hundred ten and 25/100". Before I go to the trouble of writing one, I thought perhaps that someone had already done it. Does anyone have one? Thanks, Dick...
  5. dsandlin

    How to send email programatically?

    I have a VFP application that sent me email from my client's site when an error occurred, using Internet Explorer. Apparently, recent security patches have pulled the plug on this functionality, because it has quit working. I rewrote the function, using FTP to send the message to our FTP site...
  6. dsandlin

    Escaping from a lengthy SELECT

    When working in the VFP IDE with a "SET ESCAPE ON" in effect, I am able to interrupt a long SELECT SQL statement, but it doesn't work when running the compiled EXE version. Is there a way to interrupt the executeable?
  7. dsandlin

    How to TRANSFORM a number?

    I have tried to decipher the help file on the TRANSFORM function, but have failed to figure out how to do the simplest thing. I want to convert a number into a string with four digits using leading zeroes. There are no examples on how to use the format codes (e.g., @L). What is the format to...
  8. dsandlin

    How to change mouse pointer in VFP?

    I know that you can change the mouse pointer over certain objects by changing the MousePointer property of the object, but is there a way to change the general mouse pointer inside a program? I believe that I have seen something like: SET POINTER TO 11 && Change to an hourglass pointer but...
  9. dsandlin

    Looking for PDF maximums

    Can anyone tell me (or refer me to a source for) what the maximums are for the PDF format? Specifically, 1. How large can a PDF file be? 2. How many pages can be stored in a single PDF file? Does that depend on page content? My context is writing VFP reports into PDF files. I am storing...
  10. dsandlin

    Print PDF to a file from VFP8

    I am trying to print a group of VFP reports, each to its own PDF file, but the resulting files are not recognized by the Acrobat reader. My code looks like this... SET PRINTER TO "Acrobat PDFWriter" *SET PRINTER TO "CutePDF Writer" && I've tried several *SET PRINTER TO "PDF995" USE MySource...
  11. dsandlin

    Can I print to x, y coords on a picture?

    I need to take values from FoxPro tables, print them to certain X, Y locations on a bitmap of a tax form, and put the whole thing out to a PDF. Can this be done in FoxPro? I am replacing a VB program that does it using a Printer object. Regards, Dick
  12. dsandlin

    Does EXIT work with DO CASE?

    I'm getting a Nesting Error message in a situation where I'm trying to use EXIT to escape from a CASE statement. The EXIT command is shown at the bottom of the help page for DO CASE in VFP8, but the description of the EXIT command only talks about DO WHILE, FOR, and SCAN loops. My code looks...
  13. dsandlin

    How to control image ctl visibility in grid rows?

    I have a grid with an image control in the first column. I need to be able to make the image visible for some rows and not for others. Can it be done in VFP 8.0? -- Dick [cannon]
  14. dsandlin

    Can button color be varied across records in a VFP grid?

    I have a spec that calls for a grid with a command button in one column. The color of the button needs to vary with certain conditions. I have tried making fields in the recordsource cursor that contain desired fore- and background colors and then setting the backcolor property for the button...
  15. dsandlin

    Using VFP8.0 to create FP2.6 tables

    I need to create tables using VFP8.0 that can be used by FP2.6 equipped clients. My need is two-fold: 1. Using the "CREATE TABLE" command. 2. As the output of an SQL-SELECT statement. Does anyone know of a trick, magic keyword, registry hack, or ANY way to keep from having to go into 2.6 to...
  16. dsandlin

    Exporting MSAccess 97 tables to VFP 8

    Does anyone have a good method to export tables from Access 97 into a database container in VisualFoxPro 8 that will preserve long table and field names and field formats? I've got some tables with 140 fields that are a bit difficult to handle the export with manually. There are quite a few...
  17. dsandlin

    Why doesn't my form get focus?

    I've got a simple little login form that opens without having the focus (i.e., it is not selected). I don't remember having this trouble with other forms.... Here are some properties that I have set on the form: AutoCenter = .T. ShowWindow = 2 - As Top Level WindowState = 0 - Normal WindowType...
  18. dsandlin

    How to know if a table is already open

    I've been using the following code for years to avoid the "File is in use" error when trying to open a table: IF USED('mytable') SELECT mytable ELSE SELECT 0 USE mytable ENDIF Recently, I have hit upon a problem where the table is open with an alias other than the table name...
  19. dsandlin

    How to move right justified numbers to the left in a grid?

    I am trying to move right-justified numeric data in a grid left a couple of spaces to get some white space instead of having the numbers jammed up against the line of the column separator. The answer seemed obvious: put a format into the inputmask property of the column. I found that entering...
  20. dsandlin

    alternate VFP editor

    I'm trying to use a custom editor with VFP 8.0 and I can't get it to be recognized. Per the help file, I have added a "-C" with a configuration file name to the shortcut that initiates VFP 8.0. In the config file, I have specified the editor path and filename with a "TEDIT /N...

Part and Inventory Search

Back
Top