FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FW_ArrayAsList
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
FW_ArrayAsList
Posted: Fri May 10, 2024 08:15 AM
with

cString := FW_ArrayAsList( aImages, "|",.t. ) I have
Code (fw): Select all Collapse
.\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 (fw): Select all Collapse
 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 March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: FW_ArrayAsList
Posted: Sat May 11, 2024 08:58 PM
Code (fw): Select all Collapse
cString := FW_ArrayAsList( aImages, "|",.t. )
cString := RemRight( cString, "|" )
// OR
cString := FW_TRIM( cString, "|" )
Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: FW_ArrayAsList
Posted: Mon May 13, 2024 09:58 AM
nageswaragunupudi wrote:
Code (fw): Select all Collapse
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





who is y0ya?

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

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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

Continue the discussion