Histórico da Página
Composition Setup |
---|
import.css=/download/attachments/3279126062824/newLayouttecnologia.css |
|
Pagetitle | ||||
---|---|---|---|---|
|
Função: FCount
Retorna
...
a
...
quantidade
...
de
...
campos
...
existentes
...
na
...
estrutura
...
da
...
área
...
de
...
trabalho
...
ativa.
Sintaxe
Bloco de código | ||
---|---|---|
| ||
FCount() --> nRet
|
Retorno
Nome | Tipo | Descrição |
---|---|---|
nRet |
...
numérico | Retorna a quantidade de campos existentes na estrutura da área de trabalho ativa. |
Exemplos
Bloco de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
FUNCTION Example()
Local cT1 DbSelectArea(“SA1”)nFields := FCOUNT()IF nFields > 0 MsgInfo(“A estrutura da tabela contém :+CvalToChar(nFields)+“campos.”)ENDIF Advanced Protheus 6.09 , Advanced Protheus 7.10 , Microsiga Protheus 8.11 , Protheus 10 , TOTVS Application Server 10 , ByYou Application Server "T1"
TCLink()
DBCreate("T1", {{"FIELD_NAME", "C", 10, 0}, ;
{"FIELD_TYPE", "C", 10, 0}, ;
{"FIELD_AGE", "C", 10, 0}, ;
{"FIELD_NICK", "C", 10, 0}, ;
{"FIELD_COL", "C", 10, 0}}, "TOPCONN")
DBUseArea(.F., 'TOPCONN', cT1, (cT1), .F., .T.)
nRet := (cT1)->(FCount())
if nRet == 5
conout("Existe 5 Colunas")
endif
DBCloseArea()
TCUnlink()
RETURN
|
Veja também
Visão Geral
Import HTML Content
Conteúdo das Ferramentas