Páginas

quinta-feira, 13 de agosto de 2020

DICAS 3018 - WINDEV TUTORIAL 41 - Pesquisa Simples - Pesquisa Generica - PARTE E



https://youtu.be/OjPv3GhIgos

Bom Dia/Boa Tarde/Boa Noite


Esse Ao Vivo vai estrear as 17:00 do dia 25/08/2020 

DICAS 3018 - WINDEV TUTORIAL 41 - Pesquisa Simples - Pesquisa Generica - PARTE E
Tutoriel WINDEV : Leçon 4.3.e. Recherche simple - Recherche générique


ASSUNTOS

EXPLICANDO O QUE SERA FEITO
ADICIONANDO UM EDT TEXTO
ADICIONANDO UM BOTAO 
COMANDOS USADOS
  HReadSeek
  HFound
  FileToScreen
  Error
  


Video original da Franca

https://youtu.be/Co1z2YpxU2k


Playlist Windev TUTORIAL












Generic search

We are now going to perform a generic search. Instead of searching for the exact value that was entered, we are going to search for all the elements that start with the value entered.
To perform this search, we will create an Edit control to enter the name you are looking for, and a Button control to launch the search.
  • To create the search control:
    1. Display (if necessary) the "Finding customers" pane tab of "WIN_Menu" in the editor.
    2. Create an edit control: on the "Creation" pane, in the "Usual controls" group, click Creating an edit control.
    3. In the window, click below the Combo Box control ("Sought customer"). The edit control is created.
    4. This control is named "EDT_Sought_Name" and its caption is "Sought name".
  • To create the Button control to launch the generic search:
    1. Create a Button control: on the "Creation" pane, in the "Usual controls" group, click Create a Button control.
    2. Position the control beside the edit control that was just created.
      Search interface
    3. This control is named "BTN_GenericSearch" and its caption is "Generic search".
    4. If necessary, adjust the size of the control so that the caption is displayed properly in the control.
    5. Write the following WLanguage code in the "Click" event of the button:
      // Finds a customer from his name
      HReadSeek(CustomerFullNameEDT_Sought_Name)
      IF HFound(Customer) THEN
      // Displays the customer data
      FileToScreen()
      ELSE
      Error("No customer matches")
      END
      HReadSeek is used to perform a generic search. In this example, the search is performed on the "Customer" data file and on the "FullName" item. The sought value corresponds to the value typed in the "EDT_Sought_Name" control. This value is obtained by using the control name.

      Remark

      To perform an exact-match search, call HReadSeek: to do so, the hIdentical constant must be used.
    6. Close the code window.
    7. Save the window (Ctrl + S).
  • Let's run a window test:
    1. Run the window test ( Run the test of a window among the quick access buttons).
    2. Click the "Finding customers" tab pane if necessary.
    3. Enter a value in the edit control (for example "BEEF") and click "Generic search".
      Test for the generic search
    4. The result is immediate. However, if several records correspond to the search, only the first one is displayed.
    5. Stop the test and go back to the editor.

DICAS 2978 - WINDEV TUTORIAL 1 - 1.1B - WINDEV TEMA ESCURO E IDIOMA DO AMBIENTE
DICAS 2979 - WINDEV TUTORIAL 2 - 1.2- CRIAR JANELA E INSERIR TEXTO E EXIBIR
DICAS 2980 - WINDEV TUTORIAL 3 - 2.1- VARIAVEIS PARTE 1
DICAS 2981 - WINDEV TUTORIAL 4 - 2.2- VARIAVEIS ESCOPO - PARTE 2
DICAS 2982 - WINDEV TUTORIAL 5 - 2.1- VARIAVEIS OPERADORES PARTE 3
DICAS 2983 - WINDEV TUTORIAL 6 - 2.1.D - VARIAVEIS STRINGS PARTE 4
DICAS 2984 - WINDEV TUTORIAL 7 - 2.1.E - VARIAVEIS ARRAYS PARTE 5
DICAS 2985 - WINDEV TUTORIAL 8 - 2.2.A - CONDICOES IF-SWITCH PARTE 1
DICAS 2986 - WINDEV TUTORIAL 9 - 2.2.B - CONDICOES PARTE 2
DICAS 2987 - WINDEV TUTORIAL 10 - 2.3.A - LOOP PARTE 1
DICAS 2988 - WINDEV TUTORIAL 11 - 2.3.B - LOOP EXEMPLOS PARTE 2
DICAS 2989 - WINDEV TUTORIAL 12 - Lesson 2.4. The procedures - PARTE 1
DICAS 2990 - WINDEV TUTORIAL 13 - Leçon 2.4.b. Procedures Parametros - PARTE 2
DICAS 2991 - WINDEV TUTORIAL 14 - PROCEDURES REFERENCIA - PARTE 3
DICAS 2992 - WINDEV TUTORIAL 15 - PROCEDURES OPCIONAIS OU OBRIGATORIAS - PARTE 4
DICAS 2993 - WINDEV TUTORIAL 16 - PROCEDURES EXEMPLOS - PARTE 5
DICAS 2994 - WINDEV TUTORIAL 17 - PERGUNTAS E RESPOSTA - PARTE 1
DICAS 2995 - WINDEV TUTORIAL 18 - PERGUNTAS E RESPOSTA - PARTE 2
DICAS 2996 - WINDEV TUTORIAL 19 - WINDEV E OS BANCOS DE DADOS
DICAS 2997 - WINDEV TUTORIAL 20 - PROJETO E ANALISE - CRIACAO
DICAS 2998 - WINDEV TUTORIAL 21 - PROJETO E ANALISE - ARQUIVOS DADOS CLIENTE - PARTE 2
DICAS 2999 - WINDEV TUTORIAL 22 - PROJETO E ANALISE - ARQUIVOS DADOS CRIACAO ARQUIVO PEDIDO - PARTE 3
DICAS 3000 - WINDEV TUTORIAL 23 - PROJETO E ANALISE - IMPORTANDO CVS-ARQUIVO TEXTO - PARTE 4
DICAS 3001 - WINDEV TUTORIAL 24 - PROJETO E ANALISE - IMPORTANDO ARQUIVO PRODUTO - PARTE 5
DICAS 3002 - WINDEV TUTORIAL 25 - PROJETO E ANALISE - LINK - PARTE 6
DICAS 3003 - WINDEV TUTORIAL 26 - RAD COMPLETO
DICAS 3004 - WINDEV TUTORIAL 27 - VISAO GERAL
DICAS 3005 - WINDEV TUTORIAL 28 - Adicionar e Modificar Janelas PRODUTOS - PARTE A
DICAS 3006 - WINDEV TUTORIAL 29 - Adicionar e Modificar Janelas PRODUTOS Formulario - PARTE B
DICAS 3007 - WINDEV TUTORIAL 30 - Adicionar e Modificar Janelas PRODUTOS ALINHAR CAMPOS - PARTE C








Nenhum comentário:

Postar um comentário