... para cJson se desejam transmitir por algum body:http
apllication/json, sem precisar criar com: cJson := '{ hnfe: { num: '+cNum+', Emissao: '+Dtoc(date)... dá muito trabalho criar cjson
dessa maneira.
// Criando exemplo variavel hash
hNfe := CreateObj()
hNfe:Num := 122 // vai ficar hNe:NUM se ...
Pesquisa resultou em 2416 ocorrências: +Date
Termo pesquisado: +date
- 17 Out 2025 18:36
- Fórum: [x]Harbour
- Tópico: Exemplo de uso de HBCURL.LIB para xHarbour?
- Respostas: 10
- Exibições: 13616
- 08 Set 2025 11:23
- Fórum: [x]Harbour
- Tópico: Pic para aceitar -0.90
- Respostas: 10
- Exibições: 11109
Pic para aceitar -0.90
... B Display numbers left-justified ¦ X Display DB after negative numbers
C Display CR after positive numbers ¦ Z Display zeros as blanks
D Display date in SET DATE format ¦ ( Enclose negative numbers in parens
E Display date in British format ¦ ! Convert alpha characters to upper
R Insert non ...
C Display CR after positive numbers ¦ Z Display zeros as blanks
D Display date in SET DATE format ¦ ( Enclose negative numbers in parens
E Display date in British format ¦ ! Convert alpha characters to upper
R Insert non ...
- 24 Jul 2025 08:20
- Fórum: Projeto hbNFe
- Tópico: Ler certificado diretamente de um pfx
- Respostas: 5
- Exibições: 2388
Ler certificado diretamente de um pfx
... WScript.Echo "Assunto: " & objCert.SubjectName
WScript.Echo "Emissor: " & objCert.IssuerName
WScript.Echo "Validade: " & objCert.ValidFromDate & " - " & objCert.ValidUntilDate
' --- Aqui você pode usar o certificado e a chave privada para outras operações ---
' Por exemplo, você pode ...
WScript.Echo "Emissor: " & objCert.IssuerName
WScript.Echo "Validade: " & objCert.ValidFromDate & " - " & objCert.ValidUntilDate
' --- Aqui você pode usar o certificado e a chave privada para outras operações ---
' Por exemplo, você pode ...
- 19 Jul 2025 17:18
- Fórum: MiniGui
- Tópico: Postei no grupo minigui hoje sobre a mudança
- Respostas: 4
- Exibições: 1150
Postei no grupo minigui hoje sobre a mudança
... version
debug version is not the same as demonstration version
If anything is free, ok, it is free.
It changed to paid, ok, at least there exists a date about this.
The old version, without new changes, continues free.
Not sure if it is needed to change name, to do not create confusion.
If users ...
debug version is not the same as demonstration version
If anything is free, ok, it is free.
It changed to paid, ok, at least there exists a date about this.
The old version, without new changes, continues free.
Not sure if it is needed to change name, to do not create confusion.
If users ...
- 15 Jul 2025 10:05
- Fórum: [x]Harbour
- Tópico: Tela Bugada após compilação com Harbour
- Respostas: 5
- Exibições: 4908
Tela Bugada após compilação com Harbour
... DBFCDX", 1 ) // RDT_FULL
/*
// dbSetDriver( "DBFCDX" )
// SET DBFLOCKSCHEME TO 3 // ???
// rddSetDefault( "DBFCDX" )
*/
SET CENTURY ON
SET DATE BRITISH
SET TIME FORMAT TO "HH:MM:SS"
SET EPOCH TO YEAR( DATE() ) - 30
SET SOFTSEEK OFF
SET WRAP ON
SETCANCEL( .F. )
SET CONFIRM OFF
SET ...
/*
// dbSetDriver( "DBFCDX" )
// SET DBFLOCKSCHEME TO 3 // ???
// rddSetDefault( "DBFCDX" )
*/
SET CENTURY ON
SET DATE BRITISH
SET TIME FORMAT TO "HH:MM:SS"
SET EPOCH TO YEAR( DATE() ) - 30
SET SOFTSEEK OFF
SET WRAP ON
SETCANCEL( .F. )
SET CONFIRM OFF
SET ...
- 28 Jun 2025 21:28
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Exemplo de uso do CO-PILOT do Windows
- Respostas: 3
- Exibições: 1827
Exemplo de uso do CO-PILOT do Windows
... Text)
- Last Name: (Text)
- Department: (Dropdown list with the following options: "Sales", "Marketing", "Engineering", "HR", "Finance")
- Hire Date: (Date picker)
- Active: (Checkbox)
The form should have the following buttons:
- New: Clears all fields and generates a new Employee ID.
- Save ...
- Last Name: (Text)
- Department: (Dropdown list with the following options: "Sales", "Marketing", "Engineering", "HR", "Finance")
- Hire Date: (Date picker)
- Active: (Checkbox)
The form should have the following buttons:
- New: Clears all fields and generates a new Employee ID.
- Save ...
- 19 Jun 2025 22:10
- Fórum: [x]Harbour
- Tópico: Calendário, marcar dia trabalhado
- Respostas: 35
- Exibições: 16993
Calendário, marcar dia trabalhado
Até que foi rápido
if() na inicial, pra não adicionar linha desnecessária
SET @dInicial := IF( WEEKDAY( @dInicial ) == 0, @dInicial, DATE_SUB( @dInicial, INTERVAL WEEKDAY( @dInicial ) + 1 DAY ) );
uma dFinal
SET @dFinal := LAST_DAY( @dDate );
o where pra evitar linha a mais
WHERE A ...
if() na inicial, pra não adicionar linha desnecessária
SET @dInicial := IF( WEEKDAY( @dInicial ) == 0, @dInicial, DATE_SUB( @dInicial, INTERVAL WEEKDAY( @dInicial ) + 1 DAY ) );
uma dFinal
SET @dFinal := LAST_DAY( @dDate );
o where pra evitar linha a mais
WHERE A ...
- 19 Jun 2025 19:26
- Fórum: [x]Harbour
- Tópico: Calendário, marcar dia trabalhado
- Respostas: 35
- Exibições: 16993
Calendário, marcar dia trabalhado
Mais doido ainda, só pra testar possibilidades.
Calendário com marcação dos compromissos.
SET @dDate := DATE( NOW() );
SET @dInicial := DATE_SUB( @dDate, INTERVAL DAY( @dDate ) - 1 DAY );
SET @dInicial := DATE_SUB( @dInicial, INTERVAL WEEKDAY( @dInicial ) + 1 DAY );
SELECT DISTINCT
if( MONTH( A ...
Calendário com marcação dos compromissos.
SET @dDate := DATE( NOW() );
SET @dInicial := DATE_SUB( @dDate, INTERVAL DAY( @dDate ) - 1 DAY );
SET @dInicial := DATE_SUB( @dInicial, INTERVAL WEEKDAY( @dInicial ) + 1 DAY );
SELECT DISTINCT
if( MONTH( A ...
- 14 Jun 2025 23:50
- Fórum: [x]Harbour
- Tópico: Projeto Cadastro Simples
- Respostas: 11
- Exibições: 7616
Projeto Cadastro Simples
... o indice de mesmo nome do dbf (sem a extensão)
SET AUTORDER TO 1 // aloca a ordem 1 como corrente, se omitir, o padrão é 0 (zero)
SET DATE BRIT // define datas no formato "britanico/brasileiro"
SET CENTURY ON // Habilita data com ano de 4 dígitos
RDDSETDEFAULT( "DBFCDX ...
SET AUTORDER TO 1 // aloca a ordem 1 como corrente, se omitir, o padrão é 0 (zero)
SET DATE BRIT // define datas no formato "britanico/brasileiro"
SET CENTURY ON // Habilita data com ano de 4 dígitos
RDDSETDEFAULT( "DBFCDX ...
- 13 Jun 2025 10:50
- Fórum: Projeto hbNFe
- Tópico: Classe para gerar nfe/nfce
- Respostas: 22
- Exibições: 4539
Classe para gerar nfe/nfce
... nValNot DECIMAL(16,2);
DECLARE nIpiVal, nDifValf, nMonoBas, nDifVali, nMonoAliq DECIMAL(16,2);
DECLARE nComplementar INT(11);
DECLARE dData DATE;
SET cThisXml := '';
SET nMonoAliq := 1.1200;
SELECT NFICMBAS, NFICMVAL, NFSUBBAS, NFSUBVAL, NFVALPRO, NFVALFRE,
NFVALSEG, NFVALDES, NFIIVAL ...
DECLARE nIpiVal, nDifValf, nMonoBas, nDifVali, nMonoAliq DECIMAL(16,2);
DECLARE nComplementar INT(11);
DECLARE dData DATE;
SET cThisXml := '';
SET nMonoAliq := 1.1200;
SELECT NFICMBAS, NFICMVAL, NFSUBBAS, NFSUBVAL, NFVALPRO, NFVALFRE,
NFVALSEG, NFVALDES, NFIIVAL ...
- 11 Jun 2025 10:17
- Fórum: SQL
- Tópico: variável por referência
- Respostas: 1
- Exibições: 1181
variável por referência
... nValNot DECIMAL(16,2);
DECLARE nIpiVal, nDifValf, nMonoBas, nDifVali, nMonoAliq DECIMAL(16,2);
DECLARE nComplementar INT(11);
DECLARE dData DATE;
SET cThisXml := '';
SET nMonoAliq := 1.1200;
SELECT NFICMBAS, NFICMVAL, NFSUBBAS, NFSUBVAL, NFVALPRO, NFVALFRE,
NFVALSEG, NFVALDES, NFIIVAL ...
DECLARE nIpiVal, nDifValf, nMonoBas, nDifVali, nMonoAliq DECIMAL(16,2);
DECLARE nComplementar INT(11);
DECLARE dData DATE;
SET cThisXml := '';
SET nMonoAliq := 1.1200;
SELECT NFICMBAS, NFICMVAL, NFSUBBAS, NFSUBVAL, NFVALPRO, NFVALFRE,
NFVALSEG, NFVALDES, NFIIVAL ...
- 11 Jun 2025 08:57
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Resolvendo certificado
- Respostas: 19
- Exibições: 4423
Resolvendo certificado
... todo mundo tem
$cert = New-SelfSignedCertificate `
-KeyUsage DigitalSignature `
-KeySpec Signature `
-KeyAlgorithm RSA `
-KeyLength 2048 `
-DNSName “www.site.com.br” `
-CertStoreLocation Cert:\CurrentUser\My `
-Type Custom `
-Subject “CN=nome,E=email” `
-NotAfter (Get-Date).AddYears(10)
$cert = New-SelfSignedCertificate `
-KeyUsage DigitalSignature `
-KeySpec Signature `
-KeyAlgorithm RSA `
-KeyLength 2048 `
-DNSName “www.site.com.br” `
-CertStoreLocation Cert:\CurrentUser\My `
-Type Custom `
-Subject “CN=nome,E=email” `
-NotAfter (Get-Date).AddYears(10)
- 07 Jun 2025 10:54
- Fórum: MiniGui
- Tópico: Calendário pra marcar datas
- Respostas: 2
- Exibições: 1050
Calendário pra marcar datas
... democalmonth.prg
*/
#include "minigui.ch"
STATIC nRowPos := -1, nColPos := -1
FUNCTION DemoCalMonth( lWithDialog, xParent, oButton, dDate )
LOCAL nCont, xValue, dDatRef, nMes
hb_Default( @lWithDialog, .T. )
SET WINDOW MAIN OFF
IF oButton == Nil
oButton := Array(31)
ENDIF
IF ...
*/
#include "minigui.ch"
STATIC nRowPos := -1, nColPos := -1
FUNCTION DemoCalMonth( lWithDialog, xParent, oButton, dDate )
LOCAL nCont, xValue, dDatRef, nMes
hb_Default( @lWithDialog, .T. )
SET WINDOW MAIN OFF
IF oButton == Nil
oButton := Array(31)
ENDIF
IF ...
- 06 Jun 2025 17:48
- Fórum: [x]Harbour
- Tópico: Calendário, marcar dia trabalhado
- Respostas: 35
- Exibições: 16993
Calendário, marcar dia trabalhado
Olá!
Dependendo da versão do banco, é possível utilizar uma CTE:
WITH recursive Datas AS (
-- "Membro Âncora"
SELECT
Cast( '2025-06-01' As Date) as Data
UNION ALL
-- "Membro Recursivo"
SELECT
Date_Add( Data, INTERVAL 1 DAY)
FROM Datas /* Resultado da última iteração */
WHERE
Data < Cast ...
Dependendo da versão do banco, é possível utilizar uma CTE:
WITH recursive Datas AS (
-- "Membro Âncora"
SELECT
Cast( '2025-06-01' As Date) as Data
UNION ALL
-- "Membro Recursivo"
SELECT
Date_Add( Data, INTERVAL 1 DAY)
FROM Datas /* Resultado da última iteração */
WHERE
Data < Cast ...
- 04 Jun 2025 21:24
- Fórum: [x]Harbour
- Tópico: Calendário, marcar dia trabalhado
- Respostas: 35
- Exibições: 16993
Calendário, marcar dia trabalhado
... os outros, mas pode compilar sozinho.
#include "hwgui.ch"
STATIC nRowPos := -1, nColPos := -1
FUNCTION OneMonth( lWithDialog, oDlg, oButton, dDate )
LOCAL nCont, xValue, dDatRef, nMes
hb_Default( @lWithDialog, .T. )
SET DATE BRITISH
IF oButton == Nil
oButton := Array(31)
ENDIF
IF ...
#include "hwgui.ch"
STATIC nRowPos := -1, nColPos := -1
FUNCTION OneMonth( lWithDialog, oDlg, oButton, dDate )
LOCAL nCont, xValue, dDatRef, nMes
hb_Default( @lWithDialog, .T. )
SET DATE BRITISH
IF oButton == Nil
oButton := Array(31)
ENDIF
IF ...