Search found 63 matches: cret

Return to advanced search

Re: Problem with valid email refresh btnbmp

PERHAPS ??

function validaEmail(cEmail)
LOCAL pCompiled := hb_regexComp("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$")

LOCAL cRet := .t.

IF HB_RegExMatch( pCompiled, alltrim(cEmail), .F. )


cRet := .f.
end
return cRet
by Silvio.Falconi
Wed Apr 03, 2024 10:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with valid email refresh btnbmp- RESOLVED
Replies: 25
Views: 4830

Re: chat open Ai questions ( currency rates )

... HB_ATokens( cText,  "," )  another see this https://i.postimg.cc/nhfrkY2G/k.png how take the date ? I tried with cRet := subStr( cRet, at( "update_utc", cRet )+12 ) cRet := allTrim( subStr( cRet, 1, at( 'time', cRet )-7 ) ) but I have the date string bad
by Silvio.Falconi
Thu May 11, 2023 9:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: chat open Ai questions ( currency rates )
Replies: 5
Views: 476

Re: SkinButton() Problem

hi, LOCAL cRet := "" // ´ ´ // ERROR Chinese Char? sorry, i have change " (double) to ´ (Single) online while " make "red Color" in Source have test your Version but it still crash :( --- i use IF ...
by Jimmy
Sat Apr 15, 2023 9:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SkinButton() Problem
Replies: 19
Views: 1859

Win 10 and getUrl

... local nVersionWin:=cWinVersion() local cFile,cREto If val(cWinVersion())=7 Download_Windows_Seven(cUrl,cZipFile) else cRet := WebPageContents( cUrl ) MEMOWRIT( cZipFile,cRet) Endif return nil but not happen nothing
by Silvio.Falconi
Thu Jun 09, 2022 7:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Win 10 and getUrl
Replies: 4
Views: 643

JSON with HTTPS: post

... in JSON. Here is a cutdown version of the fuction: Function PostTo360( cUrl, cData, cContentType,cAuthorization )    Local oOle,cRet:='',uRet    default cContentType:="application/json"    default cAuthorization:=""      ...
by TimStone
Mon May 23, 2022 5:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: JSON with HTTPS: post
Replies: 28
Views: 3128

Re: Download from televideo

I tried with Function TestUrl(cUrl)   local  cRet := WebPageContents( cUrl )   local cFile:="test.txt"    if Empty( cRet )      ? "Invalid URL"     else  ...
by Silvio.Falconi
Thu Apr 14, 2022 10:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Download from televideo
Replies: 3
Views: 353

Re: SetLandscape

... setup in the setup window then you get the right orientation from GetOrient() function. Best regards, Otto function SetOrient(nOrient) local cret, oprn //#define DMORIENT_PORTRAIT 1 //#define DMORIENT_LANDSCAPE 2 PRINTER oPrn if nOrient=2 oPrn:SetLandscape() else oPrn:SetPortrait() endif ...
by Otto
Sun Jun 13, 2021 8:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SetLandscape
Replies: 11
Views: 1613

Re: AYUDA PARA LEER XML DE FACTURA ELECTRONICA ( SOLUCIONADO )

... Local FinalNodo := "</"+cProc+">" Local nPosIni := At(InicioNodo,cXml) Local nPosFim := At(FinalNodo,cXml) Local cRet := '0' local oXmlDoc,oNode,cText local xmlNode,cPath If nPosIni==0 .or. nPosFim==0 Return cRet // aqui que ela aborta... retorna '0' Endif If cNodo ...
by CARLOS ATUNCAR
Thu Apr 01, 2021 3:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: AYUDA PARA LEER XML DE FACTURA ELECTRONICA ( SOLUCIONADO )
Replies: 6
Views: 1578

Coordenadas geográficas

... GeoCoordenadas( cPostal_Code, cStreet, cNumber, cLocality, cState) Local cWeb := "http://maps.google.es/maps/place/" local cMap local cRet := "" local oOle local nPos1 local nPos2 local aCoor := { 0, 0, 0 } local cNation:="Spain" cPostal_Code := StrTran( AllTrim( ...
by jgabri
Sun Jun 07, 2020 4:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Coordenadas geográficas
Replies: 2
Views: 721

Gracias!

Gracias me salvaste la vida :mrgreen: Hola: Function GetMacAdd() local aMac, cRet aMac := GetNetCardID() // esta es la func que lee el mac... IF VALTYPE(aMac) = "A" // hay varias tarjetas de red cRet := aMac[1] Else cRet := aMac // una sola t de red ...
by AIDA
Sun Nov 24, 2019 2:10 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: saber la MAC de una placa.
Replies: 4
Views: 1018

TIPCLIENTHTTP problem ( new )

... httpcli.prg => TIPCLIENTHTTP:NEW( 96 ) Opening the object is followed by creating an XML document, and then: oHttp:open() oHttp:Post( cXml) cRet := oHttp:readAll( ) oHttp:close() Looking this up on the Forum yielded a post showing that the harbour library has been "problematic" ...
by TimStone
Wed Oct 30, 2019 7:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TIPCLIENTHTTP problem ( new )
Replies: 7
Views: 1499

Re: Strange characters in TFtp:directory()

...          end       endif       InternetCloseHandle( hFTPDir )    endif return aFiles function StripFromNull(str)   local nPos := at(chr(0), str), cRet := ""   if !empty(str)      if nPos > 0         cRet := left(str, nPos-1)      endif   endif return cRet
by hua
Tue Aug 20, 2019 8:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange characters in TFtp:directory()
Replies: 4
Views: 747

Re: TO Mr Rao : XBrDtPicker

Silvio,

FOUND :D moving to the old date works like:

ACTION oCal:SetDate( oCust:HireDate, .T. ), ; // old date from xBrowse
oCal:Change() ;

or moving back to today from a old selected date
ACTION ( cRet := oCal:SetDate( Date(), .T. ), oCal:Change() ) ;

regards
Uwe
by ukoenig
Mon May 20, 2019 12:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TO Mr Rao : XBrDtPicker
Replies: 10
Views: 1194

Re: Possible to CALCULATE a listbox-height ?

... aItems, aImages, nImgHeight, oListFont, nColor ) .... .... ON INIT ( some calculations.... and at the end : oCol :AnchorToCell( oDlg ) ) RETURN cRet regards Uwe :D
by ukoenig
Sun Apr 28, 2019 6:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible to CALCULATE a listbox-height ?
Replies: 9
Views: 1357

Saber Ip Publico

... { char szPath[256], szRead[128], szRet[256]; char szSite[] = "http://checkip.dyndns.org/Current IP Check.htm"; char *Token; char *cRet; memset(szPath,0,sizeof(szPath)); memset(szRet,0,sizeof(szRet)); GetTempPath(256, szPath); strcat(szPath, "my_ip.txt"); if( URLDownloadToFile(0, ...
by Busmatic_wpb
Fri Dec 07, 2018 2:12 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Ip Publico
Replies: 1
Views: 636
Next

Return to advanced search