FW_ArrayAsList

FW_ArrayAsList

Postby Silvio.Falconi » Fri May 10, 2024 8:15 am

with

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

Code: Select all  Expand view
.\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 view
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
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: FW_ArrayAsList

Postby nageswaragunupudi » Sat May 11, 2024 8:58 pm

Code: Select all  Expand view
cString := FW_ArrayAsList( aImages, "|",.t. )
cString := RemRight( cString, "|" )
// OR
cString := FW_TRIM( cString, "|" )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: FW_ArrayAsList

Postby Silvio.Falconi » Mon May 13, 2024 9:58 am

nageswaragunupudi wrote:
Code: Select all  Expand view
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
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Natter and 56 guests