Hello, excuse me for using a translator, my English is zero.
I like to play with the vba of excel, and already I have the thinbasic to some time but I never used it
I would like to know if you have binary type comparators with 128bit capacity and bits counting,
like that
And create variables at runtime, or just using dictionaries to define something like this.HTML Code:Function Bit_Count(ByVal number As Long) As Long Dim Aa As Long Do While number number = number And (number - 1) Aa = Aa + 1 Loop Bit_Count = Aa End Function Function Bit_AND_Bit(ByVal Bit1 As Long, ByVal Bit2 As Long) As Long Bit_AND_Bit = Bit1 And Bit2 End Function Function Bit_OR_Bit(ByVal Bit1 As Long, ByVal Bit2 As Long) As Long Bit_OR_Bit = Bit1 Or Bit2 End Function Function Bit_XOR_Bit(ByVal Bit1 As Long, ByVal Bit2 As Long) As Long Bit_XOR_Bit = Bit1 Xor Bit2 End Function
And if it's possible to mount a DLL with the thinbasic
I tried other languages, but I could not get rid of the "{}" and the need to ";" At the end of each line, it's annoying
I like to set up functions with cascading ties and comparators and I'm kind of addicted to spaghetti
See you later and success.
Eduardo.
ola, desculpe-me por utilizar tradutor, meu ingles é zero
eu gosto de brincar com o vba do excel, e já tenho o thinbasic a algum tempo mas nunca o usei
gostaria de saber se tem comparadores lógicos tipo binário com capacidade de 128bit e Bits counting,
e criar variáveis em tempo de execução , ou apenas usando dicionários para definir algo parecido
tipo assim
e se é possível montar uma DLL com o thinbasic
tentei outras linguagens, mas não consegui me abtuar com os "{ }" e com a necessidade de ";" no final de cada linha , é algo irritante
gosto de montar funções com laços em cascata e comparadores e sou meio viciado em espaguete
até mais e sucesso
Bookmarks