FW_ArrayAsList

Post Reply
User avatar
Silvio.Falconi
Posts: 7133
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

FW_ArrayAsList

Post by Silvio.Falconi »

with

cString := FW_ArrayAsList( aImages, "|",.t. ) I have

Code: Select all | Expand

.\images\case-pc.jpg|.\images\cpu.jpg|.\images\monitor.jpg|||||
I wish not have the "|||||" final

how i canr resolve ?

I tried to make

Code: Select all | Expand

 cstring:=""
      for n= 1 to len(aImages)
         IF  empty(aImages[n])
            else
               cstring+=  UrlImage(aImages[n])
               cstring+="|"
          endif
       next
but I have the same result case-pc.jpg|cpu.jpg|monitor.jpg|

I need no separator at the end
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: FW_ArrayAsList

Post by nageswaragunupudi »

Code: Select all | Expand

cString := FW_ArrayAsList( aImages, "|",.t. )
cString := RemRight( cString, "|" )
// OR
cString := FW_TRIM( cString, "|" )
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 7133
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: FW_ArrayAsList

Post by Silvio.Falconi »

nageswaragunupudi wrote:

Code: Select all | Expand

cString := FW_ArrayAsList( aImages, "|",.t. )
cString := RemRight( cString, "|" )
// OR
cString := FW_TRIM( cString, "|" )

Nages

make error !!
I need to use

cString := FW_ArrayAsList( UrlImage(aImages), "|",.t. )
cString := RemRight( cString, "|" )


and there is a only a image I have this

Image



who is y0ya?

If I have more images run ok as you can see here

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply