PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns:
  • the length of a string, i.e., the number of characters in the string (including spaces and binary zeros).
  • the size of a buffer, i.e., the number of bytes in the buffer.
PHP In this version, you cannot find out the size of a buffer.
Example
Length("Quasimodo")      // Returns 9
Length(" Quasimodo ")    // Returns 11
Length("A" + Charact(0))  // Returns 2
Length("")               // Returns 0
Length(" ")              // Returns 1
Reports and QueriesJavaUser code (UMC)Ajax
MyBuffer is Buffer = "Developing is fantastic"
Length(MyBuffer)       // Returns 23
Syntax

Getting the length of a string Hide the details

<Result> = Length(<Initial string>)
<Result>: Integer
Number of characters in the string.
<Initial string>: Character string
Character string whose size will be calculated.
Reports and QueriesJavaUser code (UMC)Ajax

Getting the size of a buffer Hide the details

<Result> = Length(<Initial buffer>)
<Result>: Integer
Number of bytes in the buffer.
<Initial buffer>: Buffer
Buffer whose size will be calculated.
Remarks
Component: wd260vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
video Length
https://youtu.be/SN-gjz1fmlY


n_tamanho_rntrc is int=Length(EDT_Rodo_rntrc_2)
IF n_tamanho_rntrc=8 THEN
// correto
ELSE
Info("Informar 8 Digitos Rntrc")
ReturnToCapture(EDT_Rodo_rntrc_2)
END
amarildo
08 Dec. 2018
EXTRAIR TEXTO
n_tamanho_adicionais is int=Length(EDT_DADOS_aDICIONAIS)
n_tamanho_campo is int=Length("OC 1")
n_posicao is int=Position(EDT_DADOS_aDICIONAIS," OC 1 ",1,FromBeginning)
s_transfere is string=EDT_DADOS_aDICIONAIS[[1 TO n_posicao]]
_restante is string=EDT_DADOS_aDICIONAIS[[n_posicao+5 TO n_tamanho_adicionais]]

EDT_DADOS_aDICIONAIS=s_transfere+"OC 200"
// AQUI ESTOU ACRESCENTANDO NO MEIO DO TEXTO O QUE VOU SUBSTITUIR
// HERE I AM ADDING INTO THE TEXT WHAT YOU WILL REPLACE
// AQUÍ ESTOY AÑADIDO EN EL MEDIO DEL TEXTO LO QUE VUELVE SUSTITUIR

IF _restante<>"" THEN
EDT_DADOS_aDICIONAIS+=" "+NoSpace(_restante)
END

// BLOG COM VIDEO E EXEMPLO EXTRAIR TEXTO

http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1226-windev-string-38-extrair-texto.html

https://www.youtube.com/watch?v=chR3Od93osQ


De matos
29 Jul. 2017
Exemplo Tamanho String
SAI_resultado=Length(SAI_texto)

//FRANCES
SAI_resultado=Taille(SAI_texto)

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/02/curso-windev-string-003-tamanho-das.html
De matos AMARILDO
26 Feb. 2016