es gl gl it gl ca es gl gl pt gl fr gl gl gl gl ca en gl en en en es
Devolve unha cadea que representa o valor hexadecimal dun número.
Número: Calquera expresión numérica que queira converter a un número hexadecimal.
5 Chamada de procedemento incorrecta
Sub ExampleHex ' uses BasicFormulas in LibreOffice Calc Dim a2, b2, c2 As String a2 = "&H3E8" b2 = Hex2Lng(a2) MsgBox b2 c2 = Lng2Hex(b2) MsgBox c2 End Sub Function Hex2Lng(sHex As String) As Long ' Returns a 32-bit signed integer number from an 8-digit hexadecimal value. Hex2Lng = clng( sHex ) End Function Function Lng2Hex(iLong As Long) As String ' Calculates the 8-digit hexadecimal value out of a 32-bit signed integer number. Lng2Hex = "&H" & Hex( iLong ) End Function
Impressum (Legal Info) | Privacy Policy | Statutes (non-binding English translation) - Satzung (binding German version) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Mozilla Public License v2.0. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy. LibreOffice was based on OpenOffice.org.
Help content debug info:
This page is: /text/sbasic/shared/03080801.xhp