gl gl gl it gl ca gl gl en gl en gl fr gl gl en gl gl gl ca en gl en gl en en en gl
Right (Texto As String, n As Integer)
Expresión: Calquera cadea ou expresión numérica que queiras converter.
n: Numeric expression that defines the number of characters that you want to return. If n = 0, a zero-length string is returned. The maximum allowed value is 2,147,483,648.
O seguinte exemplo converte unha data en formato AAAA-MM-DD ao formato de data dos EUA (MM/DD/AAAA).
5 Chamada de procedemento incorrecta
Sub ExampleUSDate Dim sInput As String Dim sUS_date As String sInput = InputBox("Introduza unha data en formato internacional 'AAAA-MM-DD'") sUS_date = Mid(sInput, 6, 2) sUS_date = sUS_date & "/" sUS_date = sUS_date & Right(sInput, 2) sUS_date = sUS_date & "/" sUS_date = sUS_date & Left(sInput, 4) MsgBox sUS_date End Sub
Precisamos da súa axuda!
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/03120307.xhp