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 strongm 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: *

  1. AndrewMozley

    Switching between forms in an application

    This application has a ribbon menu which allows the user to have several forms visible at the same time. For example, a user could be entering a sales invoice for a product, but he may wish to find out what this customer – or another customer – paid last time; or what deliveries of the product...
  2. AndrewMozley

    Offering the user the option of database browsing

    An application offers a user with ‘Administrative rights’ the ability to browse any of the tables in the application. The application lets the user enter the commands in an editbox. So, for example, the user could enter these commands : SET DELETED OFF USE XSDET (A table of sales order detail...
  3. AndrewMozley

    Entering and validating a 2-digit month

    I am revisiting some old code. There is a 2-digit text box which is to specify a month. So ‘03’ would represent March. What is other users' practice for specifying the properties of such a field on the form, and for validating it? Thanks - Andrew
  4. AndrewMozley

    Combining two tables using SQL-SELECT

    I have two tables with the same record structure : ENTS with 1235 records and ARCS with 16,800 records. How can I use SELECT SQL to create a single cursor with all 18035 records. I realise there is some information in the VFP Help files, but if anyone has written or can recommend a short...
  5. AndrewMozley

    Autosave with Microsoft Word

    I am using Office 365 including the use of OneDrive. When I am editing a Word document and click on File, the menu on the left offers Save and Save As. And if I close the document (X in top right), it will ask me whether I want to Save the document. This happens with most of my documents...
  6. AndrewMozley

    Remove recently used symbol

    When entering a Word document, I often use the 'en-space' — a slightly wider hyphen. To put this into the document, I click Insert on the top ribbon menu, then Symbol on the right, clicking on the drop-down list. This shows some recently used symbols and the 'More symbols'. From there I choose...
  7. AndrewMozley

    When to validate a Textbox.

    I have an application with a textbox in which a customer account code can be entered. (this text box is based on a class used within the application). The Valid() method of this particular control – call it txtCust - will do several things, including helping the user to search for suitable...
  8. AndrewMozley

    SQL : Searching for records with an exact field value

    I have a table XSORD which has a field ‘Account’ - the customer account number, and have executed the instruction : SET EXACT ON In order to retrieve records for a particular customer, say ‘S100’, I can execute a command : SELECT * FROM XSORD WHERE Account = ‘S100’ This however returns a...
  9. AndrewMozley

    Word Automation from VFP

    I would like to include a command button within a VFP application, so that the user can refer to a .doc file (just one per customer) which he can maintain in whatever way he likes, and can bring it up when he clicks on a button which I will add to the form. I have Tamar’s helpful book...
  10. AndrewMozley

    Microsoft Word. Printing a document with comments, full size

    I have an A4 .docx file, about 200 pages, which I am reviewing. Have used the ‘Review | Add comment‘ facility to make suggestions; so when I am editing it the comments are shown in a column on the right of the screen, linked to the place in the text to which each comment refers. I would like...
  11. AndrewMozley

    SELECT SQL - WHERE clause

    I do not use SELECT-SQL very much (perhaps I should use it more). But I would like to write a command which will detect in a single table where there are entries for a particular key do not add up to zero. The table is XENTN. Three of the fields are tDate (D), Folio C(8) and tValue N(9,2). A...
  12. AndrewMozley

    Re-issuing an application - Checking for table updates.

    There is an application which mainly consists of a startup program, several function libraries, a menu system, a set of forms and reports, and a database made up of several tables. The startup program, forms, function libraries and menus are bound together into an executable (say) myapp.exe...
  13. AndrewMozley

    Print formats .frx/.frt - Printer environment

    I have an application which has many reports. Each report uses a pair of .frx/.frt files which defines the layout of the report. These report layouts are not bound into the executable program (.exe), because some users may want to modify a report or provide their own layout. So the report...
  14. AndrewMozley

    Error handling - listing properties of a form to an error file

    When an error happens in an application, this may have been trapped by : ON ERROR DO ErrorRoutine WITH ERROR(), MESSAGE(), PROGRAM(), LINENO() NOCONSOLE The code which is then executed includes : LIST MEMORY LIKE * TO <filename> NOCONSOLE That works fine: Local, Public &c variables are...
  15. AndrewMozley

    LPARAMETERS and PARAMETERS statements

    I have never been sure of the difference between LPARAMETERS and PARAMETERS. Have written a short test program to see if I can detect the difference. CLEAR SET TALK OFf LOCAL X x = 2 SET STEP ON lAns = MyFUNC(x) ? "lAns = " + STR(lAns,2) ? "vParm = " + STR(vParm,2) RETURN FUNCTION MyFunc...
  16. AndrewMozley

    [b]Fermat's last theorem[/b] (event

    Fermat's last theorem (eventually proved) states that : No three positive integers a, b, and c satisfy the equation : an + bn = cn for any integer value of n greater than 2 Consider the equation ak + bl = bm . .. where a, b, c, k, l, m are all positive integers and k, l, m (may be the...
  17. AndrewMozley

    Entering a date into a Textbox

    I have a data-entry text box. When it has focus it shows the date in dd-mm-yy format So the user can perhaps key in new values And when it does not have focus it shows as : To that end it has a PUBLIC variable - zValueD - of type DATE, (which is not itself the value of the control). So...
  18. AndrewMozley

    Checking for ‘Save Printer environment'

    I have several reports where I offer the chance of printing to paper, to screen, or to a pdf printer. To organise the pdf printing, I include code more or less like this : lfrxname = “<The frx file name for the report>” lName = “<My PDF printer name>” SET PRINTER TO NAME (lname) REPORT FORM...
  19. AndrewMozley

    Summary band on multi-page report

    I have a report (Sales Invoice) which includes information at the end, like the total value(s) and various captions and declarations. I can put this into the page footer, and that works fine in most cases. However, if the document runs to two or more pages, it would be nice if only the last...
  20. AndrewMozley

    Report footer - variable length field

    An application produces and prints sales invoices, using REPORT FORM. These documents are based on a report format SALINV.FRX/FRT. At present the structure of the report layout is fairly simple. There is a single group consisting of the detail lines of the invoice. The group header (so – at...

Part and Inventory Search

Back
Top