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
The following functions are used to manage the character strings:
AnsiToOemConverts an ANSI string (Windows) to an OEM string (DOS).
AnsiToUnicodeConverts:
  • an ANSI string (Windows) to a UNICODE string.
  • a buffer containing an ANSI string (Windows) to a buffer containing a UNICODE string.
AscReturns the ASCII code of the specified character.
BufferToHexaConverts a buffer to a hexadecimal string (for example: "4A 5B 00").
BufferToIntegerExtracts an integer from a binary buffer at a given position.
Versions 26 and later
BufferToPhrase
New in version 26
BufferToPhrase
BufferToPhrase
Extrait une phrase présente dans un buffer.
BufferToRealExtracts a real from a binary buffer at a given position.
CharactReturns the character corresponding to the specified ASCII code.
CharactTypeReturns information about the type of character.
CharactTypeCountReturns the number of characters matching a given type.
CharactUnicodeReturns the character corresponding to the specified Unicode code.
CommonLengthReturns the number of characters common to two characters strings (from the beginning or from the end).
CompleteReturns a character string of a specified length.
CompleteDirAdds a backslash to the end of a string, if necessary.
ContainsAllows you to check if a substring is within a string.
ExtractLineExtracts a specific line from a character string.
ExtractStringAllows you to:
  • extract a substring from a string based on a specified string separator.
  • search for substrings in a string based on a specified string separator.
ExtractStringBetweenAllows you to:
  • extract a substring between two given separators from a character string.
  • search for substrings between two given separators in a character string.
HexaToBufferConverts a string with hexadecimal bytes to a binary buffer.
HexaToIntReturns the numeric value of a hexadecimal string.
HTMLToRTFConverts an HTML string or an HTML buffer to an RTF string.
HTMLToTextConverts an HTML string or buffer to text.
IntToHexaReturns the hexadecimal string of a numeric value.
JSONToStringConverts the content of a JSON variable to a JSON string.
JSONToVariantConverts a JSON string to a Variant variable.
LeftExtracts the left part (i.e., the first characters) from a string or buffer.
LengthReturns:
  • the size of a character string, which means the number of characters found in the character string (including the space and binary 0 characters).
  • the size of a buffer, which means the number of bytes found in the buffer.
LengthToStringConverts a length expressed in bytes into a character string formatted in kilobytes, megabytes or terabytes.
LineToPositionReturns the position of the first character of a line in a block of text.
LowerConverts all characters in a string to lowercase according to the region settings defined in Windows.
MatchRegularExpressionChecks whether a character string corresponds to a specific format and retrieves the different substrings that constitute the format.
MiddleExtracts:
  • a substring from a string starting at a specified position.
  • part of a buffer starting at a specified position.
NoAccentTransforms the accented characters found in a character string into non-accented characters.
NoCharacterReturns a character string without the specified characters found on the left and on the right.
NoLeftCharacterReturns a character string without the specified characters found on the left of the initial string.
NoRightCharacterReturns a character string without the specified characters found on the right of the initial string.
NoSpaceReturns a character string without the space characters:
  • found on the right and on the left.
  • found inside the string.
NumberInWordsConverts a number to words.
NumToFinancialWritingChineseTransforms a numeric value (integer, real or currency) into a character string in the Chinese financial writing format.
NumToStringConverts a numeric value (integer, real or currency) to a string according to a specified format.
OemToAnsiConverts a character string in OEM format (DOS) into a character string in ANSI format (Windows).
PhoneticReturns the phonetics corresponding to the string passed in parameter.
Versions 26 and later
PhraseToBuffer
New in version 26
PhraseToBuffer
PhraseToBuffer
Convertit un texte en buffer.
PositionFinds the position of a character string inside another character string.
PositionOccurrenceFinds the Xth position of a character string in a character string.
PositionToLineReturns the number of the line to which belongs a character identified by its position in a block of text.
RepeatStringConcatenates N repetitions of the same character string or buffer.
ReplaceReplaces all the occurrences of a word found in a string by another word.
ReverseReturns the character that corresponds to the difference between the ASCII code of a specific character in a string and 255.
RightExtracts the right part (i.e., the last characters) from a string or buffer.
StringBuildBuilds a character string from an initial string and parameters.
StringCompareCompares two strings character by character:
  • according to the sequence of ASCII characters.
  • according to the alphabetical order.
StringCountCalculates:
  • the number of occurrences of a specific character string (by respecting the search criteria) in another character string.
  • the number of occurrences of a set of strings in an array.
StringDeleteDeletes:
  • all the occurrences of a substring within a string.
  • part of a string within another string. The part of the string to remove is identified by its position and length.
StringEndsWithChecks whether a character string ends:
  • with a specific character string.
  • with one of the character strings in an array.
StringFormatFormats a character string according to the selected options.
StringIncrementIncrements a number at the beginning or at the end of a string.
StringInsertInserts a string into another character string at a given position.
StringRetrieveRetrieves a character string in a format external to PC Soft (character string that is the result of a Windows API for example).
StringReverseReverses the characters of a string.
StringSplitExtracts all the substrings from a character string based on one or more string separators.
StringStartsWithChecks whether a character string starts:
  • with a specific character string.
  • with one of the character strings in an array.
StringToJSONConverts a JSON string into a JSON variable.
StringToUTF8Converts an ANSI or UNICODE string to UTF-8.
SystemIntegerToIntegerConverts a system integer to a 4-byte integer.
TextToHTMLConverts a text string into an HTML string (the CR characters are replaced by <BR>, the accented characters are replaced by their equivalent in HTML, ...).
TextToRTFConverts a text string into a string in RTF format.
TruncateTruncates the right part of a string or buffer.
UncompleteDirRemoves the '/' or '\' characters from the end of a string, if necessary.
UnicodeToAnsiConverts:
  • a character string in UNICODE format into a character string in ANSI format (Windows).
  • a buffer containing a character string in UNICODE format into a buffer containing a character string in ANSI format (Windows).
UpperConverts all characters in a string to uppercase according to the region settings defined in Windows.
URLDecodeDecodes an encoded URL (which means with characters in %xx format).
URLEncodeEncodes a URL with a sub-set of ASCII characters.
URLExtractPathReturns the different elements of a URL: protocol, user, password, domain, port, resource path, resource name, resource extension, request and fragment.
UTF8ToAnsiConverts a string in UTF8 format into a string in Ansi format.
UTF8ToStringConverts a string in UTF8 format into a string in ANSI or UNICODE format.
UTF8ToUnicodeConverts a string in UTF8 format into a Unicode string.
ValReturns the numeric value of a character string.
VariantToJSONConverts the content of a Variant variable to JSON format.
WordCountReturns the number of words in a string.
WordToArrayFills an array with the words from a string.
Other functions can also be used to handle character strings:
ArrayToStringConverts a one- or two-dimensional array to a character string.
DeserializeDeserializes a buffer or a character string containing the data of a class, a structure or an array and their sub-elements.
StringToArrayFills a one- or two-dimensional array with the content of a string.
StringToDateConverts a date in character string format to a date in YYYYMMDD format.
TextToXMLConverts an ANSI string to an XML string.
XMLToTextConverts an XML string to an ANSI string.
Related Examples:
The HTMLTo functions Unit examples (WEBDEV): The HTMLTo functions
[ + ] This example explains how to use the HTMLToRTF and HTMLToText functions of WLanguage.
The Val function Unit examples (WINDEV): The Val function
[ + ] Using the WLanguage "Val" function with different databases.
For example, it allows you to retrieve the decimal value of a string in Hexadecimal format.
The standard functions on strings Unit examples (WINDEV): The standard functions on strings
[ + ] Using the main functions for handling character strings:
- Position and PositionOccurrence
- Replace
- StringBuild
- Left, Right, Middle
- ExtractString
Complex strings Unit examples (WINDEV): Complex strings
[ + ] Implementing the building of complex strings with StringBuild.
Strings with APIs Unit examples (WINDEV): Strings with APIs
[ + ] Using strings with APIs.
The following functions are used:
- StringRetrieve
- Transfer
WD Input checks Training (WINDEV): WD Input checks
[ + ] This example presents the manage of the input checks with the WLanguage functions.
The following topics are presented in this example:
1/ the functions for handling the strings
2/ the use of the file that groups the French cities

Summary of the example supplied with WINDEV:
This program, powered by WINDEV, explains how to check the data entered by the user: name, company, zip code, city, email address, and so on.
This example contains several procedures that can be easily reused.
The file containing 39 000 zip codes and cities is supplied with this example
The regular expressions Unit examples (WINDEV): The regular expressions
[ + ] Using regular expressions with WINDEV.
Two use modes are presented for the regular expressions:
- checking the input format
- checking out different elements while respecting the input format.
This example is also used to search for a word in a string. The search can be case-sensitive or not. Possibility to take into account (or not) the start or end of string, as well as spaces (anywhere in the string, even in the sought word)
The regular expressions Unit examples (WINDEV Mobile): The regular expressions
[ + ] Using regular expressions with WINDEV Mobile.
It presents 2 modes for using the regular expressions:
- check the input format
- check out the different elements that match the input format.
This example is also used to search for a word in a string. The search can be case-sensitive or not. Possibility to take into account (or not) the start or end of string, as well as spaces (anywhere in the string, even in the sought word)
The encryption functions Unit examples (WINDEV Mobile): The encryption functions
[ + ] Using the WLanguage encryption and decryption functions.
This example is used to:
- Encrypt a character string
- Decrypt a character string
The encryption functions Unit examples (WEBDEV): The encryption functions
[ + ] This example explains how to use the encryption/decryption functions of WEBDEV. This example allows you to:
- Encrypt a character string
- Decrypt a character string
Minimum version required
  • Version 9
This page is also available for…
Comments
Pegar Quantidade/Valor/Codigo do Cupom
Aula 1092 - WinDev Dicas 20/... - Pegar Quantidade/Valor/Codigo do Cupom

Nessa aula vou ensinar
como Digitar numa String
Quantidade,Valor e Codigo
e O sistema
Separar os 3
Isso serve para frente de Caixa
no meu caso
Cupom Eletronico

In this class I will teach
How to Type in a String
Quantity, Value and Code
And the system
Separate the 3
This is for Box Front
in my case
Electronic Coupon

//Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2017/03/aula-1092-windev-dicas-20-pegar.html

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



De matos
14 Mar. 2017
Exemplo String Caixa
Nessa dica de hoje,
Vou ensinar como fazer
com uma String
Uma caixa
Para colocar alguns itens Dentro
//=============
In this tip today,
I'll teach you how to do it.
With a String
A box
To put some items in
//=============
Dans cette astuce aujourd'hui,
Je vais apprendre à faire
avec une chaîne
une boîte
Pour mettre certains éléments à l'intérieur
//==============

De matos
10 Mar. 2017