Última discussão há 29 h

Fórum PC Toledo

pctoledo.org ↗

Fórum phpBB em português. 12 seções acompanhadas: ↳ CA-Clipper, Programação e desenvolvimento, Diversos, ↳ Outras linguagens de programação, ↳ Ferramentas de Apoio, ↳ [x]Harbour, ↳ Regras e Comunicados, ↳ Banco de Dados, ↳ Contribuições, Dicas e Tutoriais, ↳ Tabelas em Geral, Bate Papo e ↳ SQL.

Discussões por dia
4
Discussões coletadas
75
Mensagens por dia
39
Seções
12
Fontes acompanhadas
15
Motor
phpBB

Últimas discussões

Coletadas a cada 4 horas do feed público do fórum. Reproduzimos apenas o título, o link e o começo da mensagem; cada link leva à fonte.

[x]Harbour
Solar Power Investment & Financing Opportunities

Another essential reason to modify to solar technology may be the cost benefits it provides. Solar panel systems can handle generating electricity for businesses, reducing or eliminating the need for traditional resources of energy. This may end in significant savings on energy bills, particularly in areas with high energy costs. Furthermore, there are many government incentives and tax credits open to companies that adopt solar technology, which makes it a lot more cost-effective and affordable. The technology behind solar power is not at all hard, yet highly effective. Solar power panels are made of photovoltaic (PV) cells, which convert sunlight into electricity. This electricity can then be kept in batteries or fed directly into the electrical grid, with respect to the specific system design. So that you can maximize the advantages of solar power, it is vital to design a custom system this is certainly tailored to your unique energy needs and requirements. This may make sure that you have the best components in position, like the appropriate amount of solar panel systems plus the right form of batteries, to optimize your time efficiency and cost savings. Discovering global power trends by Matt D'Agati. Solar Water Heating Systems: Efficiency and Adoption e463863 Estatísticas: Enviado por AaronRer — 01 Out 2026 13:47

Outras linguagens de programação
Função em javaScript

Amiguinhos, Sei que o tópico é antigo. Não sei se resolvido. Só para brincarem um pouco com CRUD e JSON. Usei Harbour e Fivewin, mas dá para adaptar. Classe: Código: #include "FiveWin.ch"//---------------------------------------------------------------// Classe TProducts - CRUD para JSON de produtos//---------------------------------------------------------------CLASS TProducts DATA aProducts AS ARRAY INIT {} // array de hashes DATA nTotal AS NUMERIC INIT 0 DATA nSkip AS NUMERIC INIT 0 DATA nLimit AS NUMERIC INIT 30 DATA cFileJson AS CHARACTER INIT "products.json" DATA cLastError AS CHARACTER INIT "" METHOD New( cFile ) CONSTRUCTOR METHOD LoadFromFile( cFile ) METHOD LoadFromString( cJson ) METHOD SaveToFile( cFile ) METHOD ToJson() METHOD List() // retorna aProducts METHOD Count() INLINE Len( ::aProducts ) METHOD GetById( nId ) METHOD GetIndexById( nId ) METHOD Add( hProd ) METHOD Update( nId, hProd ) METHOD Delete( nId ) METHOD Clear() INLINE ( ::aProducts := {}, ::nTotal := 0 ) METHOD GetHtml( cUrl ) METHOD NextId() METHOD BrowseArray() // array simples p/ xbrowse/browse // helpers internos METHOD HashFromRaw( hRaw ) METHOD RawFromHash( h )ENDCLASS//---------------------------------------------------------------METHOD New( cFile ) CLASS TProducts DEFAULT cFile := "products.json" ::cFileJson := cFile IF File( ::cFileJson ) ::LoadFromFile( ::cFileJson ) ENDIFRETURN Self//---------------------------------------------------------------METHOD LoadFromFile( cFile ) CLASS TProduc

[x]Harbour
xHarbour(64 Bit) Clang 22.1.8

Amiguinhos, Itamar M. Lins Jr. » 01 Sep 2026, 09:53 Olá! ... Então eu pergunto para quem usa. Como se faz para compilar um prg com o xHarbour ? Preciso de um exemplo. Eu ainda não me adaptei ao hbMake por preguiça, ainda uso .bat e com ele compilo testes usando as varias versões de Borland e Harbour/xHarbour passando como parâmetro quais eu quero. Mas assim só uso para .PRGs solitários. Estatísticas: Enviado por rochinha — 01 Out 2026 09:59

[x]Harbour
HbMemio.lib para xHarbour?

Amiguinhos, Só para lembrar que o xHarbour tem outra biblioteca. filemem Estatísticas: Enviado por rochinha — 01 Out 2026 09:48

Legislação Fiscal e Tributária
Classe Harbour para verificação de status NFC-e/EPEC

Amiguinhos, Com harbour pódemos manipular via DOM tanto JSON como XML mas e HTML? Bom, com este pequeno exemplo de uso e minha classe MiniXPath você pode capturar IDs dentro de qualquer HTML e obter seu conteúdo. Para testar a classe o .PRG de teste fará a verificação da disponibilidade dos serviços NFC-e e EPEC diretamente da página do ambiente autorizador de São Paulo. Código: #include "FiveWin.ch"FUNCTION Main() local oXPath := TMiniXPath():New( "https://www.nfce.fazenda.sp.gov.br/NFCePortal/" ) if oXPath:Analisar() ? "NFC-e ................:", If( oXPath:lDisponibilidadeNFCe, "Disponivel", "Indisponivel" ) ? "Contingencia EPEC ....:", If( oXPath:lDisponibilidadeEPEC, "Disponivel", "Indisponivel" ) if oXPath:lDisponibilidadeNFCe MsgInfo( "Servico NFC-e OPERANTE" ) else MsgAlert( "Servico NFC-e INDISPONIVEL!" ) endif else MsgStop( "Erro na consulta: " + oXPath:cErro ) endifreturn NIL#include "TMiniXPath.class" Obtenha a classe diretamente em meu gitHub. MiniXPath Class Estatísticas: Enviado por rochinha — 01 Out 2026 00:51

Outras linguagens de programação
xampp, no módulo MySQL, clico em Start, não inicializa

Amiguinhos, porter você já olhou o log do Apache, PHP ou MySQL para ver qual módulo não está subindo? Tente subir o MySQL pelo prompt. Uma coisa que pode causar a não inicialização do MySQL é corrompimento da pasta DATA. Renomei-a para _DATA, crie outra pasta e inicie o MySQL para ver se o mesmo sobe. Estatísticas: Enviado por rochinha — 30 Set 2026 23:13

HwGui
Hwgui Gtk4 Atualização 30-09-2026

Olá! Retorno do foco, para o get (valid). Quando chamar uma msg de aviso, erro... Código: 2026-09-30 12:33 UTC-0300 Itamar Junior * source/gtk4/window.c * source/gtk4/message.c Fix focus restoration after a message box closes in GTK4. GTK4 clears the parent window's focus as soon as a modal GtkWindow is created, so gtk_window_get_focus() and gtk_root_get_focus() both return NULL by the time hwg_message_box() runs. On top of that, when a VALID block returns .F. the HWGui dialog engine moves focus to the next control in the queue (typically the phantom get used to hold the dialog open), overriding any synchronous grab_focus() issued from Harbour. window.c: track the last focused widget in cb_focus_enter() and expose it through hwg_get_last_focused_widget(). message.c: capture that pointer before creating the modal, and restore focus after the modal is destroyed via g_idle_add() so the grab runs *after* the Harbour VALID chain completes. Applies to every message box variant (MsgInfo, MsgStop, MsgExclamation, MsgOkCancel, MsgYesNo, MsgYesNoCancel) since they all share hwg_message_box(). Estatísticas: Enviado por Itamar M. Lins Jr. — 30 Set 2026 12:40 — Respostas 0 — Exibições 1

HwGui
Hwgui Gtk4 Atualização 30-09-2026

Olá! Retorno do foco, para o get (valid). Quando chamar uma msg de aviso, erro... Código: 2026-09-30 12:33 UTC-0300 Itamar Junior * source/gtk4/window.c * source/gtk4/message.c Fix focus restoration after a message box closes in GTK4. GTK4 clears the parent window's focus as soon as a modal GtkWindow is created, so gtk_window_get_focus() and gtk_root_get_focus() both return NULL by the time hwg_message_box() runs. On top of that, when a VALID block returns .F. the HWGui dialog engine moves focus to the next control in the queue (typically the phantom get used to hold the dialog open), overriding any synchronous grab_focus() issued from Harbour. window.c: track the last focused widget in cb_focus_enter() and expose it through hwg_get_last_focused_widget(). message.c: capture that pointer before creating the modal, and restore focus after the modal is destroyed via g_idle_add() so the grab runs *after* the Harbour VALID chain completes. Applies to every message box variant (MsgInfo, MsgStop, MsgExclamation, MsgOkCancel, MsgYesNo, MsgYesNoCancel) since they all share hwg_message_box(). Estatísticas: Enviado por Itamar M. Lins Jr. — 30 Set 2026 12:40

HwGui
Hwgui Gtk4 Atualização 30-09-2026

Olá! Retorno do foco, para o get (valid). Quando chamar uma msg de aviso, erro... Código: 2026-09-30 12:33 UTC-0300 Itamar Junior * source/gtk4/window.c * source/gtk4/message.c Fix focus restoration after a message box closes in GTK4. GTK4 clears the parent window's focus as soon as a modal GtkWindow is created, so gtk_window_get_focus() and gtk_root_get_focus() both return NULL by the time hwg_message_box() runs. On top of that, when a VALID block returns .F. the HWGui dialog engine moves focus to the next control in the queue (typically the phantom get used to hold the dialog open), overriding any synchronous grab_focus() issued from Harbour. window.c: track the last focused widget in cb_focus_enter() and expose it through hwg_get_last_focused_widget(). message.c: capture that pointer before creating the modal, and restore focus after the modal is destroyed via g_idle_add() so the grab runs *after* the Harbour VALID chain completes. Applies to every message box variant (MsgInfo, MsgStop, MsgExclamation, MsgOkCancel, MsgYesNo, MsgYesNoCancel) since they all share hwg_message_box(). Estatísticas: Enviado por Itamar M. Lins Jr. — 30 Set 2026 12:40

HwGui
Hwgui Gtk4 Atualização 30-09-2026

Olá! Retorno do foco, para o get (valid). Quando chamar uma msg de aviso, erro... Código: 2026-09-30 12:33 UTC-0300 Itamar Junior * source/gtk4/window.c * source/gtk4/message.c Fix focus restoration after a message box closes in GTK4. GTK4 clears the parent window's focus as soon as a modal GtkWindow is created, so gtk_window_get_focus() and gtk_root_get_focus() both return NULL by the time hwg_message_box() runs. On top of that, when a VALID block returns .F. the HWGui dialog engine moves focus to the next control in the queue (typically the phantom get used to hold the dialog open), overriding any synchronous grab_focus() issued from Harbour. window.c: track the last focused widget in cb_focus_enter() and expose it through hwg_get_last_focused_widget(). message.c: capture that pointer before creating the modal, and restore focus after the modal is destroyed via g_idle_add() so the grab runs *after* the Harbour VALID chain completes. Applies to every message box variant (MsgInfo, MsgStop, MsgExclamation, MsgOkCancel, MsgYesNo, MsgYesNoCancel) since they all share hwg_message_box(). Estatísticas: Enviado por Itamar M. Lins Jr. — 30 Set 2026 12:40

HwGui
Hwgui Gtk4 Atualização 30-09-2026

Olá! Retorno do foco, para o get (valid). Quando chamar uma msg de aviso, erro... Código: 2026-09-30 12:33 UTC-0300 Itamar Junior * source/gtk4/window.c * source/gtk4/message.c Fix focus restoration after a message box closes in GTK4. GTK4 clears the parent window's focus as soon as a modal GtkWindow is created, so gtk_window_get_focus() and gtk_root_get_focus() both return NULL by the time hwg_message_box() runs. On top of that, when a VALID block returns .F. the HWGui dialog engine moves focus to the next control in the queue (typically the phantom get used to hold the dialog open), overriding any synchronous grab_focus() issued from Harbour. window.c: track the last focused widget in cb_focus_enter() and expose it through hwg_get_last_focused_widget(). message.c: capture that pointer before creating the modal, and restore focus after the modal is destroyed via g_idle_add() so the grab runs *after* the Harbour VALID chain completes. Applies to every message box variant (MsgInfo, MsgStop, MsgExclamation, MsgOkCancel, MsgYesNo, MsgYesNoCancel) since they all share hwg_message_box(). Estatísticas: Enviado por Itamar M. Lins Jr. — 30 Set 2026 12:40

HwGui
Hwgui Gtk4 Atualização 30-09-2026

Olá! Retorno do foco, para o get (valid). Quando chamar uma msg de aviso, erro... Código: 2026-09-30 12:33 UTC-0300 Itamar Junior * source/gtk4/window.c * source/gtk4/message.c Fix focus restoration after a message box closes in GTK4. GTK4 clears the parent window's focus as soon as a modal GtkWindow is created, so gtk_window_get_focus() and gtk_root_get_focus() both return NULL by the time hwg_message_box() runs. On top of that, when a VALID block returns .F. the HWGui dialog engine moves focus to the next control in the queue (typically the phantom get used to hold the dialog open), overriding any synchronous grab_focus() issued from Harbour. window.c: track the last focused widget in cb_focus_enter() and expose it through hwg_get_last_focused_widget(). message.c: capture that pointer before creating the modal, and restore focus after the modal is destroyed via g_idle_add() so the grab runs *after* the Harbour VALID chain completes. Applies to every message box variant (MsgInfo, MsgStop, MsgExclamation, MsgOkCancel, MsgYesNo, MsgYesNoCancel) since they all share hwg_message_box(). Estatísticas: Enviado por Itamar M. Lins Jr. — 30 Set 2026 12:40

75 discussões coletadas desde 16 de setembro de 2026. Acompanhe este fórum com uma palavra-chave →