Home | Sign in | English Help WLanguage WLanguage functions Standard functions Functions for managing numeric values Matrix functions MatReadColumn Presentation Example Matrix existence Managing errors Size of Extracting an element value from See also Functions for managing matrices MatAdd MatCopy MatCreate MatDelete MatDeterminant MatError MatExist MatFill MatFloatAdd MatFloatMultiply MatInvert MatMultiply MatNbColumn MatNbLine MatRead MatReadColumn MatReadLine MatStack MatTranspose MatWrite The matrices
• Matrix existence
• Managing errors
• Size of
• Extracting an element value from
WINDEV WEBDEV WINDEV Mobile Others In french: MatLitColonne
Reads the value of all the elements found in a matrix column. Versions 15 and later This function is now available for Android applications. New in version 15 This function is now available for Android applications. This function is now available for Android applications. Versions 17 and later This function is now available for iPhone/iPad applications. New in version 17 This function is now available for iPhone/iPad applications. This function is now available for iPhone/iPad applications. Versions 18 and later This function is now available in Android Widget mode. This function is now available in Windows Store apps mode. New in version 18 This function is now available in Android Widget mode. This function is now available in Windows Store apps mode. This function is now available in Android Widget mode. This function is now available in Windows Store apps mode. Versions 21 and later This function is now available in Universal Windows 10 App mode. New in version 21 This function is now available in Universal Windows 10 App mode. This function is now available in Universal Windows 10 App mode. Versions 25 and later This function is now available in browser code. New in version 25 This function is now available in browser code. This function is now available in browser code.
// Read the elements found in column 5
Syntax
<Result> = MatReadColumn(<Matrix> , <Column to read> [, <Total element size> [, <Number of decimals> [, <Element format>]]])
<Result>: Character string
Value of all the elements found in the specified column, in the following format:
<Value of element 1> + TAB + <Value of element 2> + TAB + ...
+ TAB + <Value of element N>
<Matrix>: Character string (with quotes)
Name of matrix to read, defined by MatCreate.
Number of the column to read.
<Total element size>: Optional integer
Total size of an element to read. This size includes the sign, the thousand separator, the decimal point, the exponent, the integer parts and the decimal parts of the element value.
• If the element has more than <Total element size> digits, <Total element size> is increased.
• If the element has less than <Total element size> digits, <Result> is filled with spaces.
• If <Total element size> is not specified, the value of the element read will have the size of its significant part.
• <Total element size> must not exceed 100.
• If <Total element size> is set to 0, the value of the element will have the size of its significant part.
<Number of decimals>: Optional integer
Number of decimals to read. This parameter always starts with a dot ("."). The last decimal will be rounded. This parameter only affects the float notations ("f") and the exponential notations ("e" and "E"). <Total element size> is ignored if <Number of decimals> is greater than <Total element size>.
 "d" type (integer) "e" or "E" type (exponential notation) and "f" type (float notation) .0 - 0 .N - N (if N is greater than the number of decimals, the decimal part will be filled with zeros) (not specified) - 6
<Element format>: Optional character
Format for representing an element:
• d: the value of the element is expressed as a signed integer. The digits found after the decimal point are truncated and <Number of decimals> is ignored.
• e or E: the value of the element is expressed as an exponential notation with 1 digit before the decimal point, <Number of decimals> digits after the decimal point and at least 2 digits in the exponent.
Remarks

Matrix existence

The matrix existence is not checked. To check the matrix existence, use MatExist.

Managing errors

Caution: MatReadColumn returns no error code. To find out whether errors have been generated when reading the column elements, use MatError. To find out the error details, use ErrorInfo with the errMessage constant.

Size of <Result>

Caution: The size of the character string returned in <Result> cannot exceed 260 characters. If the matrix column contains more characters, the string found in <Result> will only contain the first 260 characters.

Extracting an element value from <Result>

To extract one or more element values from <Result>, use ExtractString.
Business / UI classification : Neutral code
Component : wd250mat.dll
Minimum version required
• Version 9
{"ft_lang_label":"__label__en","ft_lang_prob":0.76243436,"math_prob":0.8606102,"size":2110,"snap":"2020-24-2020-29","text_gpt3_token_len":496,"char_repetition_ratio":0.18660969,"word_repetition_ratio":0.063400574,"special_character_ratio":0.24549763,"punctuation_ratio":0.113300495,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9506222,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-05T09:11:54Z\",\"WARC-Record-ID\":\"<urn:uuid:8b75cadf-67cd-4eff-b56e-ad9a5b0c5e5b>\",\"Content-Length\":\"153848\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:deae1d3a-438e-4b1f-905d-249accac5eae>\",\"WARC-Concurrent-To\":\"<urn:uuid:a988676d-1dfd-4177-9c27-447b20b05d45>\",\"WARC-IP-Address\":\"188.165.60.131\",\"WARC-Target-URI\":\"https://doc.windev.com/en-US/?3050070\",\"WARC-Payload-Digest\":\"sha1:LBYQ3RPHB2YKIN7RANEYOFPDX34P2CRE\",\"WARC-Block-Digest\":\"sha1:5MLN24ND2WRAKDHQPKWY5RSAF3VFITYS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655887319.41_warc_CC-MAIN-20200705090648-20200705120648-00164.warc.gz\"}"}