PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WX - Indirection usando tabela e campo para pegar o ultimo registro de uma tabela
WX - Indirection usando tabela e campo para pegar o ultimo registro de uma tabela
Started by BOLLER, Feb., 15 2020 11:45 PM - No answer
Connect yourself…
BOLLER
#1
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on February, 15 2020 - 11:45 PM
//EM UM SISTEMA EM REDE É IMPORTANTE A SEQUENCIA SER UNICA
T002_PESSOAS.T002_PESSOA_ID
=
GET_SEQ
(
"T002_PESSOAS"
,
"T002_PESSOA_ID"
)
HAdd
(
T002_PESSOAS
)
Procedure
GET_SEQ
(
TABELA
,
C
AMPO_ID
)
ID
is
8
-
bytes int
FOR
E
ACH
{
TABELA
,
indFile
}
ID
+
+
REGISTRO
is string
=
TABELA
+
"."
+
C
AMPO_ID
idtable
is
8
-
bytes int
= {
REGISTRO
}
IF
idtable
>
ID
THEN
ID
=
idtable
END
END
RESULT
ID
+
1
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text