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 Chriss Miller 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. SitesMasstec

    Change words (language) in button set

    Hello dear colleagues! I created a small form for data entry, using Wizard. I came with the buttons I need, to add, delete and edit records, as you can see in the image bellow. It runs fine, but I would like to change the terms, as my native language is Portuguese Brazilian. For example...
  2. SitesMasstec

    Progress of report being processed

    Hello colleagues! I created a Report which uses data from a cursor, that has about two hundred of records, selected from thousands of records from a table. Well, the generated Report (about 25 pages) is fine. It is acceptable that it takes about 10-20 seconds to show the report on screen...
  3. SitesMasstec

    Report layout differs when running

    Hello colleagues! I have been wasting more time to fine ajust the position of objects when design a report than creating the report itself. Is it a fault in VFP 9? I have tried even (instead of moving labels through the report using arrows) to set the position "From left" (for example 5,614...
  4. SitesMasstec

    Sorting an array

    Hello colleagues! I have been trying to sort an array in alphabetical order, but errors appear: PUBLIC ARRAY Cabine(30) FOR I=1 TO 30 IF XTIPOCAB(I)<>SPACE(3) Cabine(I)=XTIPOCAB(I) + " - " + XCATEGCAB(I) + " ("+ ALLTRIM(XNOMECAB(I)) + ") " ENDIF NEXT I ASORT(Cabine) && Sort...
  5. SitesMasstec

    Report not showing selected records

    Hello colleagues! I am trying to display in a report only records which have in the PSTAT field the content "PENDENTE". This field lenght is set to 10 characters. The variable QualStatus is defined during run time, and the user typed "Pendente" to be stored in it. The code is: SELECT * FROM...
  6. SitesMasstec

    Copy fields from one table to another

    Hello colleagues! I have 2 tables: Table A has 30 fields and Table B has 34 fields. The 30 first fields in table B are the same (names) in table A. So, Table B has 4 additional fields. How can I select and copy some filtered records from Table A to Table B, without excluding the last 4 fields...
  7. SitesMasstec

    Sum of values in a Report Detail band

    Dear colleagues: I have a report which displays values from some records (parent + child): Now I need to calculate some total values, as shown in the above red squares. In a Form, I displayed these total values after calculating them in the Form, Init procedure, but in a Report... I do not...
  8. SitesMasstec

    Report with no Data Environment

    Hello colleagues! Is it possible to create a report with no Data Environment? That is, I am running a form, and this form has lots of variables read from 2 files. Each field in a file, for example, the field NOMAGENT is stored in the memory variable YNOMAGENT, and then displayed in the form...
  9. SitesMasstec

    Cleaning fields with zeroes

    Hello colleagues! I have this in a form: I have used a way to blank the field in the third column (when there are zeroes): FOR NF=1 TO 12 strNF=STR(NF,2) IF SUBSTR(strNF,1,1)=" " strNF="0"+SUBSTR(strNF,2,1) ENDIF * Some commands here frase="thisform.txtNFAVRPg"...
  10. SitesMasstec

    Set a TAG for a field programmaticaly

    Hello colleagues! I have a free table named ETIQUETA.DBF: Now I want to create a TAG (ascending) for the field CCIDA, but programmaticaly. I tried many commands like ALTER TABLE ETIQUETA ... TAG CCIDA, but I failed. Is it possible? In fact, I want this for another table, derived from...
  11. SitesMasstec

    A way to make all ReadOnly

    Hello colleagues! I have a form with dozens of objects (ComboBox, TextBox, etc) for data entry. And I can alter previously recorded data in this form. Is there a way to make all these objects Read Only, without having to declare each object in the form .ReadOnly=.T. ? (there is no...
  12. SitesMasstec

    Combobox populated with data from a table

    Hello colleagues! In my form (bellow) I give the user the option to select a name from a table (names are showed in alphabetical order). The user can filter the result of the report by a chosen name, or he/she can leave it blank. I achieved this by appending a blank record to the table. For...
  13. SitesMasstec

    SetFocus not working

    Hello, colleagues! I created a form, which has a field for date, which must not be blank: the user must type a date. If the field for the date LostFocus and is blank the field becomes red and the cursor have to stay in the field (please see bellow). But when I run it, if I leave the field...
  14. SitesMasstec

    Update data in a Cursor

    Hello colleagues! I have this form, with data in a Grid, with this command: SELECT LOCALIZA, EMISSAO, CODAGENTE, NOMAGENTE, NOMECIA, NOMENAV, DATASAIDA, DOCUMENTO FROM RESERVAS; WHERE (EMISSAO>=XQualPDEmissao AND EMISSAO<=XQualUDEmissao) INTO CURSOR curReservas So, the data in the Grid...
  15. SitesMasstec

    Selecting record from a Grid for use in another form

    Hello collegues! I have a Form with a Grid populated with just some data from file RESERVAS.DBF: When I locate the record I need, I want the form above to desappear and open another Form which has all data from that selected record: The field "Localizador" is a unique key for each record in...
  16. SitesMasstec

    How to order a column of data in a Grid

    Hello colleagues! I created a Grid on a form with data from a table. It has 7 columns. Sometimes I will need to order ascending numerical or alphabetical columns. When I click on the Header of the 4th column (Agente), nothing happens, in spite of the fact thar I have the following code in the...
  17. SitesMasstec

    ComboBox not accepting a pre-recorded date

    Hello colleagues! I have a form with this code in the Init procedure: WITH thisform ... .dtSaida.Value=YDATASAIDA ... Where YDATASAIDA stores a Date (I have confirmed that YDATASAIDA, is a D (Date) VARTYPE, so I am sure its type is Date). This is the portion on...
  18. SitesMasstec

    ComboBox not showing recorded item

    Hello colleagues! In a ComboBox inside a Form I have 2 fields being shown fom a table named CIAS: SIGLACIA and NOMECIA, with a " - " (space separator space) between these two fields. Well, I selected one option in the Combobox and it was recorded in another table (RESERVAS.DBF). This is ok...
  19. SitesMasstec

    Create a table with Tag indexes

    Hello colleagues! I know how to create a free table programatically: CREATE TABLE RESERVAS (LOCALIZA C(12)) && Cod.Localizador USE ALTER TABLE RESERVAS ADD COLUMN EMISSAO D && Data de Emissão da Reserva ALTER TABLE RESERVAS ADD COLUMN DOLAR N(8,5) && Cotação do Dolar ALTER...
  20. SitesMasstec

    Report with OLE

    Hello colleagues! In a table I have a field named EMAANEX1 C 50 (Character, NOT a General field) Inside that field it has this content (just the name of a picture): JOHNDOE.JPG The John Doe picture (JOHNDOE.JPG) is saved in the sub-folder named \ANEXOS in the current application folder. So...

Part and Inventory Search

Back
Top