obrigado pela ajuda.


                                                                  
 (Embedded                                                        
 image moved   [EMAIL PROTECTED]                        
 to file:      04/01/2002 14:07                                   
 pic24125.pcx)                                                    
                                                                  



Favor Responder a [EMAIL PROTECTED]

Para: <[EMAIL PROTECTED]>
cc:
Assunto:  Re: [sqlwin] PROCURAR EM UMA TABLE


        Olá, de uma estudada nesta função abaixo ...
        VisTblFindString (tblRestaurante, TBL_Min_Row, col_nm_restaurante,
dfPesquisa)


VisTblFindString

Syntax

nRow VisTblFindString (hWndTable, nStartRow, hWndColumn, sString)
Handle: hWndTable
Number: nStartRow
Number: hWndColumn
String: sString

Description

Locates a string value within a column.
The string must match exactly, but case is ignored. Searching ends when the
last row in the table is checked. A SAM_FetchRow message is sent for all
rows that have not yet been fetched into the cache.
You can use the pattern matching characters understood by the function
SalStrScan. The percent character (%) matches any set of characters. The
underscore character ( _ ) matches any single character.

Parameters

hWndTable - Table window handle.
nStartRow - Row number at which to start the search.
hWndColumn - Handle of column to search. Use hWndNULL to search all string
columns.
sString - String for which to search.

Return Value

Number: The row number if sString is found, or -1 if not found.

        Existe para números e datas também.

        Espero ter ajudado.


__________________________
Januario Lachman Junior
Esfera Informática Ltda
www.esfera.com.br
Fone/fax: (041) 254-3534
mailto : [EMAIL PROTECTED]
ICQ# 86704812

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 4:10 PM
Subject: [sqlwin] PROCURAR EM UMA TABLE


OLA PESSOAL,


Sou novo na lista e na programação em Centura e estou precisando de ajuda,
estou com o seguinte problema:

Como Faco para pesquisar um texto em uma table???
Tenho um datafield e um botao PESQUISAR
Preciso POR EXEMPLO localizar a string 'RESTAURANTE'

               DENTRO DA TABLE QUE ESTA POPULADA
'RESTAURANTE OTERO'
                                                   'RESTAURANTE SUL DE
MINAS'
                                                   'RESTAURANTE
PATOBRAGADO'

Asim que o 1. registro  seja encontrado
se eu clicar novamente em PESQUISAR ele deve ir para o registro seguinte


Obrigado.

===============Lista de Centura SQLWindows
Administrador : [EMAIL PROTECTED]
[ http://www.centuraexplorer.com ]
Para sair desta lista mande mensagem para:
[EMAIL PROTECTED] sem nada no Subject e
com o comando a seguir no corpo da msg:
"unsubscribe sqlwin" (sem as aspas)
===============


==============================================
Lista de Centura SQLWindows
Administrador : [EMAIL PROTECTED]
[ http://www.centuraexplorer.com ]
Para sair desta lista mande mensagem para:
[EMAIL PROTECTED] sem nada no Subject e
com o comando a seguir no corpo da msg:
"unsubscribe sqlwin" (sem as aspas)
==============================================

Attachment: pic24125.pcx
Description: Binary data

Responder a