PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Versions 16 and later
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
Apple Watch Most of these functions are now available in Apple Watch mode.
New in version 21
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
Apple Watch Most of these functions are now available in Apple Watch mode.
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
Apple Watch Most of these functions are now available in Apple Watch mode.
The following functions are used to manage the character strings:
AnsiToOemTransforms a character string in ANSI format (Windows) into a character string in OEM format (DOS).
AnsiToUnicodeConverts:
  • a character string in ANSI format (Windows) into a character string in UNICODE format.
  • a buffer containing a character string in ANSI format (Windows) into a buffer containing a character string in UNICODE format.
AscReturns the ASCII code of specified character.
BufferToHexaConverts a buffer into a displayable hexadecimal string (for example: "4A 5B 00").
BufferToIntegerExtracts an integer found in a binary buffer at a given position.
BufferToRealExtracts a real found in a binary buffer at a given position.
CharactReturns the character corresponding to the specified ASCII code.
CharactTypeReturns information about the type of character.
CharactTypeOccurrenceReturns the number of characters matching the information of 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 given size.
CompleteDirAdds (if necessary) the "\" character at the end of a character string.
CompressCompresses a string or a memory block (buffer) in binary format.
ContainsUsed to find out whether a sub-string is included in a string.
CryptEncrypts a character string in binary format or in ASCII format.
CryptStandardEncrypts a character string or a binary buffer by using a symmetrical encryption algorithm (AES, DES, etc.)
DecodeDecodes a character string that was encoded by Encode.
EncodeEncodes a character string or a buffer. To decode the result, all you have to do is use Decode.
ExtractLineExtracts a specific line from a character string.
ExtractStringUsed to:
  • extract a sub-string from a character string according to a given string separator.
  • browse the sub-strings in a character string according to a given string separator.
HexaToBufferConverts a string representing bytes in hexadecimal into a binary buffer.
HexaToIntReturns the numeric value of an hexadecimal string.
HTMLToRTFConverts an HTML string or an HTML buffer into a string in RTF format.
HTMLToTextConverts an HTML string or an HTML buffer into text string.
IntToHexaReturns the hexadecimal string of a numeric value.
JSONToVariantConverts a string in JSON format into a Variant variable.
LeftExtracts the left part (which means the first characters) from a character string or from a 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 a character string into lowercase characters according to the localization settings defined in Windows.
MatchRegularExpressionChecks whether a character string corresponds to a specific format and retrieves the different sub-strings that constitute the format.
MiddleExtracts
  • a sub-string from a given position in a string.
  • a section from a given position in a buffer.
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.
NumberInWordsTransforms a number into a character string corresponding to the number "written in words".
NumToFinancialWritingChineseTransforms a numeric value (integer, real or currency) into a character string in the Chinese financial writing format.
NumToStringTransforms a numeric value (integer, real or currency) into a character string according to the 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.
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 complement to 255 for each character found in a character string.
RightExtracts the right part (which means the last characters) from a character string or from a buffer.
StringBuildBuilds a character string according to an initial string and to 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 found in an array.
StringDeleteDeletes:
  • all the occurrences of a sub-string inside a string.
  • a section of string inside a string. The part of 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 found in a list.
StringFormatFormats a character string according to the selected options.
StringIncrementIncrements a number found at the beginning or at the end of a character 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 sub-strings from a character string according to a one or more string separators.
StringStartsWithChecks whether a character string starts:
  • with a specific character string.
  • with one of the character strings found in a list.
StringToUTF8Converts a string from ANSI or UNICODE format to UTF8 format.
SystemIntegerToIntegerConverts a system integer into a 4-byte integer
TruncateTruncates the right part of a string or buffer.
UncompleteDirRemoves the "/"' or "\"' character found at the end of a string.
UncompressDecompresses a memory block (buffer) that was compressed by Compress.
UncryptDecrypts a character string that was encrypted by Crypt.
UncryptStandardDecrypts a message that was encrypted with a symmetrical encryption algorithm (AES, DES, etc.).
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 a character string into uppercase characters according to the localization 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.
UUDecodeDecodes a character string in UUEncode format.
UUEncodeEncodes a character string according to the UUEncode algorithm.
ValReturns the numeric value of a character string.
VariantToJSONConverts the content of a Variant variable to JSON format.
WordOccurrenceReturns the number of words in a string.
WordToArrayFills an array with the words of a string.
Other functions can also be used to handle the character strings:
ArrayToStringConverts a one-dimensional array or a two-dimensional array into 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.
StringToDateTransforms a date in character string format into a date in YYYYMMDD format.
TextToXMLConverts a character string in ANSI format into a character string in XML format.
XMLToTextConverts a character string in XML format into a character string in ANSI format.
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
The Crypt functions Unit examples (WINDEV): The Crypt functions
[ + ] Using the encryption/decryption functions of WINDEV.
This example is used to:
- Encrypt a character string
- Decrypt a character string
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 Crypt functions Unit examples (WINDEV Mobile): The Crypt functions
[ + ] Using the WLanguage encryption and decryption functions.
This example is used to:
- Encrypt a character string
- Decrypt a character string
The Crypt functions Unit examples (WEBDEV): The Crypt 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 required version
  • 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
Mar. 14 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
Mar. 10 2017