Difference between revisions of "ASTRING()"
From Lianjapedia
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return an array as a character string, with the elements separated by a comma or specified character | Function to return an array as a character string, with the elements separated by a comma or specified character | ||
− | |||
==Syntax== | ==Syntax== | ||
ASTRING(<array>[, <expC>]) | ASTRING(<array>[, <expC>]) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[AADD()]], [[AAVERAGE | + | [[AADD()]], [[AAVERAGE()]], [[ACOPY()]], [[ADEL()]], [[ADESC()]], [[ADIR()]], [[AELEMENT()]], [[AFIELDS()]], [[AFILL()]], [[AINS()]], [[ALEN()]], [[AMAX()]], [[AMIN()]], [[APPEND FROM ARRAY]], [[ARRAY()]], [[ASCAN()]], [[ASIZE()]], [[ASORT()]], [[ASTORE()]], [[ASUBSCRIPT()]], [[ASUM()]], [[COPY TO ARRAY]], [[DECLARE]], [[DIMENSION]], [[GATHER]], [[IN_ARRAY()]], [[IS_ARRAY()]], [[LOCAL]], [[PRIVATE]], [[PUBLIC]], [[RELEASE]], [[RESTORE]], [[SAVE]], [[SCATTER]] |
==Description== | ==Description== | ||
The ASTRING() function reads the array <array> and returns the elements as a character string. The elements are comma-separated unless <expC> is specifed, in which case they are separated by <expC>. | The ASTRING() function reads the array <array> and returns the elements as a character string. The elements are comma-separated unless <expC> is specifed, in which case they are separated by <expC>. | ||
− | |||
==Example== | ==Example== | ||
Line 21: | Line 18: | ||
backtostring = astring(aMenu, "+") | backtostring = astring(aMenu, "+") | ||
</code> | </code> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Array Processing Functions]] | [[Category:Array Processing Functions]] | ||
− | |||
[[Category:String Data Functions]] | [[Category:String Data Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 06:52, 10 December 2012
Contents
Purpose
Function to return an array as a character string, with the elements separated by a comma or specified character
Syntax
ASTRING(<array>[, <expC>])
See Also
AADD(), AAVERAGE(), ACOPY(), ADEL(), ADESC(), ADIR(), AELEMENT(), AFIELDS(), AFILL(), AINS(), ALEN(), AMAX(), AMIN(), APPEND FROM ARRAY, ARRAY(), ASCAN(), ASIZE(), ASORT(), ASTORE(), ASUBSCRIPT(), ASUM(), COPY TO ARRAY, DECLARE, DIMENSION, GATHER, IN_ARRAY(), IS_ARRAY(), LOCAL, PRIVATE, PUBLIC, RELEASE, RESTORE, SAVE, SCATTER
Description
The ASTRING() function reads the array <array> and returns the elements as a character string. The elements are comma-separated unless <expC> is specifed, in which case they are separated by <expC>.
Example
menu fields select "+" declare aMenu[512] nelements = astore(aMenu, menuitem(), "+") backtostring = astring(aMenu, "+")