PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
Converte Inteiro Para Data Boller = PADRAO CLARION PARA PADRAO WINDEV
Converte Inteiro Para Data Boller = PADRAO CLARION PARA PADRAO WINDEV
Started by Boller, Sep., 26 2022 10:50 PM - No answer
Connect yourself…
Boller
#1
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on September, 26 2022 - 10:50 PM
/
/
Summary
: <
specify the procedure action
>
// Syntax:
//[
<
Result
>
= ] ConverteInteiroParaDataBoller (
<
pDataInteiro
>
,
<
DMA
>
)
//
// Parameters:
//
pDataInteiro:
<
specify the role of pDataInteiro
>
//
DMA:
<
specify the role of DMA
>
// Return Value:
//
ANSI string: //
None
//
// For instance:
// Indicate an example.
//
PROCEDURE ConverteInteiroParaDataBoller(pDataInteiro,DMA)
sData is string = ""
IF DateValid(pDataInteiro) = True THEN //Se for uma data valida entao nao converto pois data ja é valida
sData = pDataInteiro
ELSE
IF pDataInteiro = "" OR pDataInteiro = 0 THEN
sData = ""
ELSE
IF DMA = "D"
sData = IntegerToDate(pDataInteiro,"D")
ELSE IF DMA = "M"
sData = IntegerToDate(pDataInteiro,"M")
ELSE IF DMA = "A"
sData = IntegerToDate(pDataInteiro,"A")
END
END
END
RESULT sData
MODO DE USAR
DIA IS INT = ConverteInteiroParaDataBoller(80991,"D") //29
MES IS INT = ConverteInteiroParaDataBoller(80991,"M") //09
ANO IS INT = ConverteInteiroParaDataBoller(80991,"A") //2021
--
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