Search found 7237 matches

by Silvio.Falconi
Thu Apr 03, 2025 7:19 am
Forum: FiveWin for Harbour/xHarbour
Topic: UTF-8 con BOM
Replies: 7
Views: 2092

Re: UTF-8 con BOM

´
cHtml := Strtran(cHtml,_CodeUtf8Bom_,chr(239)+chr(187)+chr(191))


Error occurred at: 04/03/25, 09:18:56
Error description: Error BASE/1003 Variable does not exist: _CODEUTF8BOM_

Stack Calls
===========
Called from: Source\test.prg => HTML( 95 )
Called from: Source\test.prg => MAIN( 19 )
by Silvio.Falconi
Thu Apr 03, 2025 7:15 am
Forum: FiveWin for Harbour/xHarbour
Topic: webview questions
Replies: 5
Views: 2057

Re: webview questions


Silvio, te remito a la documentacion oficial, pero en algunos casos es muy util
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent


El User-Agent es un encabezado HTTP que los navegadores (u otros clientes HTTP) envían al servidor web para identificar el dispositivo ...
by Silvio.Falconi
Thu Apr 03, 2025 7:11 am
Forum: FiveWin for Harbour/xHarbour
Topic: Silvio, Happy Birthday
Replies: 14
Views: 1680

Re: Silvio, Happy Birthday

THANKS TO ALL
by Silvio.Falconi
Mon Mar 31, 2025 8:19 pm
Forum: FiveWin for Harbour/xHarbour
Topic: webview questions
Replies: 5
Views: 2057

Re: webview questions

cnavarro wrote: Mon Mar 31, 2025 12:13 am SetUserAgent

Look this topic
viewtopic.php?p=278605#p278605
Cris ¿qué debería hacer este agente? ¿Cual es su función?
by Silvio.Falconi
Mon Mar 31, 2025 8:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: UTF-8 con BOM
Replies: 7
Views: 2092

Re: UTF-8 con BOM

I use xmate
But the problem Is on a menu "contabilità" i change With che(224) and on the HTML i make a converion. Strtran With agrave;
Now seems tò run ok
For the oders "orders n°' i saw i can change because It Is my script and the Number of invoice come from dbf , i must only make some test
by Silvio.Falconi
Mon Mar 31, 2025 4:20 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Silvio, Happy Birthday
Replies: 14
Views: 1680

Re: Silvio, Happy Birthday

thank you all so much for the good wishes received, I told Antonio a few days ago, the best gift I could receive is to have good news from a very important person for us, I pray every day for Rao's health that he can soon return to us
by Silvio.Falconi
Sun Mar 30, 2025 9:02 pm
Forum: FiveWin for Harbour/xHarbour
Topic: webview questions
Replies: 5
Views: 2057

webview questions

I wish ask

if I can no show the menu when I click on html as

https://i.postimg.cc/W4ntNW2V/me.png

I can use the command

:InjectJavascript( "document.addEventListener('contextmenu', function(e) { if (e.target.tagName !== 'A') { e.preventDefault(); } });" )

and seems run ok obviously it ...
by Silvio.Falconi
Sun Mar 30, 2025 8:38 pm
Forum: FiveWin for Harbour/xHarbour
Topic: UTF-8 con BOM
Replies: 7
Views: 2092

UTF-8 con BOM

is there a command or function that can convert all special characters such as "à" or "n°" because when I put it in an html file I see strange symbols, it would take a command like UTF-8 with BOM

on my html I allready insert

TEXT INTO cHtml
<!DOCTYPE html>
<html lang="it">
<head>
<meta ...
by Silvio.Falconi
Sun Mar 30, 2025 5:36 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with numeric fields and FWH 25.01
Replies: 24
Views: 5770

Re: Problem with numeric fields and FWH 25.01


Dear Cristobal,

The type of the fields is:

QTE DECIMAL(11,3)
VALOR DECIMAL(12,4)


I saw many topic on web with problems on MariaDb and Decimals


one man give me this link perhaps can help you
https://docs.oracle.com/javase/8/docs/api/java/text/NumberFormat.html
https://mariadb.com/kb/en ...
by Silvio.Falconi
Sun Mar 30, 2025 5:30 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Webview and external css
Replies: 9
Views: 1608

Re: Webview and external css

I use
LOCAL cCss := BuildCss()

on this function I insert the css sample


TEXT INTO cCss
html, body {
font-family: Tahoma, sans-serif;
background-color: #F5F5EB;
padding: 20px 5px 10px 5px;
margin: 0;
height: 100vh;
overflow: hidden;
}
.container {
display: flex;


then on html ...
by Silvio.Falconi
Sun Mar 30, 2025 5:26 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Images on Webview no base64 conversion
Replies: 0
Views: 725

Images on Webview no base64 conversion

a few days ago I was told that to use the png file I had to convert them to base64 ,
before I made


LOCAL hImages := {=>}
hImages["IMGHOME"] := LoadResourceToBase64("DASH_HOME" )


but this evening I discovered that it is also possible to do differently

that is, take them directly from the ...
by Silvio.Falconi
Fri Mar 28, 2025 5:27 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with numeric fields and FWH 25.01
Replies: 24
Views: 5770

Re: Problem with numeric fields and FWH 25.01

Then It Is AN error of mariadb ?
by Silvio.Falconi
Fri Mar 28, 2025 1:19 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with numeric fields and FWH 25.01
Replies: 24
Views: 5770

Re: Problem with numeric fields and FWH 25.01


Dear Antonio,

IF you have any table in your mysql server where you have numeric fields with more than 2 decimals. Just run the code bellow and you'll see the problem.

oRs := oCn:Query("SELECT nfiscal,cmat,qte,qtedig,valor FROM consumo WHERE nfiscal LIKE '00023332601%'")
? oRs:qte,oRs:valor,oRs ...
by Silvio.Falconi
Fri Mar 28, 2025 10:02 am
Forum: FiveWin for Harbour/xHarbour
Topic: resource on hash no run with webview2 - RESOLVED
Replies: 5
Views: 2150

Re: resource on hash no run with webview2 - RESOLVED

Antonio,
better with any type of file





FUNCTION LoadResourceToBase64(cResourceName, cMimeType)
LOCAL cResourceData := crestostr(cResourceName, RT_RCDATA) // Read the resource as a string
LOCAL cBase64

IF EMPTY(cResourceData)
MsgStop("Error: Unable to read resource '" + cResourceName ...
by Silvio.Falconi
Fri Mar 28, 2025 9:32 am
Forum: FiveWin for Harbour/xHarbour
Topic: resource on hash no run with webview2 - RESOLVED
Replies: 5
Views: 2150

Re: resource on hash no run with webview2

https://i.postimg.cc/rpgp64Cn/H.png


the functions



FUNCTION LoadResourceToBase64(cResourceName)
LOCAL cResourceData := crestostr(cResourceName, RT_RCDATA) // Legge la risorsa come stringa
LOCAL cBase64

IF EMPTY(cResourceData)
MsgStop("Error: Unable to read file'" + cResourceName ...