Search found 23 matches: chex

Return to advanced search

Re: Multiple array is giving me problems

Antonio Linares wrote:Marc,

It fails because the field "hexcode" is type char and you are assigning it a nil value:

aadd( aMail ,{ cdd, If( cHex == nil, "", cHex ) } )


Indeed... This solved my problem and i think other problems I had before also. Never thinking of a NIL value..

Thank You !!
by Marc Venken
Mon Dec 14, 2020 12:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple array is giving me problems (SOLVED)
Replies: 11
Views: 789

Re: Multiple array is giving me problems

Marc,

It fails because the field "hexcode" is type char and you are assigning it a nil value:

aadd( aMail ,{ cdd, If( cHex == nil, "", cHex ) } )
by Antonio Linares
Mon Dec 14, 2020 12:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple array is giving me problems (SOLVED)
Replies: 11
Views: 789

Re: Multiple array is giving me problems

Antonio Linares wrote:Marc,

fields assignment must use ":="

shopcolor->kleuren := cKleur
shopcolor->hexcode := Chex


Same error...
by Marc Venken
Mon Dec 14, 2020 12:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple array is giving me problems (SOLVED)
Replies: 11
Views: 789

Re: Multiple array is giving me problems

Enrico Maria Giordano wrote:
Antonio Linares wrote:Marc,

fields assignment must use ":="

shopcolor->kleuren := cKleur
shopcolor->hexcode := Chex


It's not true. In that context, the two operators = and := are equivalent.

EMG


Enrico,

It works because the alias is specified. Remove the alias and it will fail.
by Antonio Linares
Mon Dec 14, 2020 12:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple array is giving me problems (SOLVED)
Replies: 11
Views: 789

Re: Multiple array is giving me problems

Antonio Linares wrote:Marc,

fields assignment must use ":="

shopcolor->kleuren := cKleur
shopcolor->hexcode := Chex


It's not true. In that context, the two operators = and := are equivalent.

EMG
by Enrico Maria Giordano
Mon Dec 14, 2020 11:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple array is giving me problems (SOLVED)
Replies: 11
Views: 789

Re: Multiple array is giving me problems

Marc,

fields assignment must use ":="

shopcolor->kleuren := cKleur
shopcolor->hexcode := Chex
by Antonio Linares
Mon Dec 14, 2020 10:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiple array is giving me problems (SOLVED)
Replies: 11
Views: 789

Re: HEX color to INT value

The difference is this: Windows COLORREF constants, when expressed in hex are 0xBBGGRR If we have such a color string "BBGGRR" then nHex( cHex ) or HEXTONUM( cHex ) would convert the hex string to numeric value. Mostly in web and other platforms colors are expressed as "#RRGGBB" ...
by nageswaragunupudi
Tue Dec 25, 2018 8:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HEX color to INT value
Replies: 10
Views: 1909

Re: HEX color to INT value

There is also:

function nHex( cHex ) --> nValue
by Antonio Linares
Tue Dec 25, 2018 8:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HEX color to INT value
Replies: 10
Views: 1909

Re: Funcion I2BIN(n)

NTOC( nInteger ( or cHex ), ; nBase, ; // 2 to 36. Default 10 nLength, ; cPadChar ) // default Space. nBase (also known as RADIX in math) is for Binary : 2, Octal : 8, Decimal : 10, Hex : 16. We can also choose any other number. Example ...
by nageswaragunupudi
Fri Jun 15, 2018 9:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion I2BIN(n)
Replies: 10
Views: 1621

Re: fwh functions

I have theese routines written by Badara (an old fivewin user). I hope they fulfil your needs. FUNCTION StrToBase64( cTexte ) LOCAL X, cHex, cTexte64 := "" DO WHILE !( cTexte == "" ) cHex := "" FOR X := 1 TO 3 cHex += CarToBin( LEFT(cTexte, 1) ) IF LEN(cTexte) ...
by betoncu
Tue Oct 24, 2017 8:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: fwh functions
Replies: 7
Views: 1617

Re: funciones de FWH y Harbour en un archivo .txt

... SetAtLike([<nNewMode>],[<cWildCard>])->nOldMode SetBit(<nInteger>|<cHex>,[<nBitPos,...>])->nInteger SetBlink([<lToggle>])->lCurrentSetting SetCancel([<lOnOff>])->lOldSetting SetClearA([<xColor>])->cNull ...
by rubenfernandez01
Sun Oct 22, 2017 4:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5710

Re: funciones de FWH y Harbour en un archivo .txt

... SetAtLike([<nNewMode>],[<cWildCard>])->nOldMode SetBit(<nInteger>|<cHex>,[<nBitPos,...>])->nInteger SetBlink([<lToggle>])->lCurrentSetting SetCancel([<lOnOff>])->lOldSetting SetClearA([<xColor>])->cNull ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5710

Re: funciones de FWH y Harbour en un archivo .txt

... CheckSum(<cString>)->nCheckSum Chr(<nCode>)->cChar ClearBit(<nInteger>|<cHex>,[<nBitPos,...>])->nNewValue ClearEol([<nRow>],[<nCol>],[<xColor>],[<xChar>])->cNull ClearSlow(<nDelay>,[<nTop>],[<nLeft>],[<nBottom>],[<nRight>],[<xChar>])->cNull ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5710

Re: Operador Unary

... convirtiendo el valor decimal primero a Hexadecimal con la funcion de Harbour NumToHex(nDecimal), luego usa la funcion siguiente: HexToBinary(cHex) FUNCTION HexToBinary(cHex)    LOCAL nLenBin, nX, nPos, cBinNumber, cCharHex, cBinBase    aHexBinary  := {    {"0",  ...
by George
Mon Dec 16, 2013 11:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Operador Unary
Replies: 4
Views: 701

Re: Codificacion en Base64

... * Le '=' (65e caractère) est utilisé dans le processus de codage pour les caractères finaux. LOCAL cTexte64 := "" LOCAL X LOCAL cHex DO WHILE !( cTexte == "" ) cHex := "" * Le processus de codage représente des groupes de 24 bits de données en entrée par une ...
by jponce
Mon Feb 25, 2013 10:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Codificacion en Base64
Replies: 12
Views: 4410
Next

Return to advanced search