Is there a function to save a string like "30/60/90" from an array?
i.e. to create an array I made aData := hb_ATokens(cString,"/")
Does the reverse function exist?
#include "fivewin.ch"
function Main()
local cString := "30/60/90", aData := hb_ATokens(cString,"/")
cString := ""
AEval(aData, {|a| cString := cString + a + "/" })
cString := substr(cString,1,len(cString)-1)
? cString
RETURN nil
cStr := FW_ArrayAsList( aData, [cDelim], [lTrim]
aData := FW_ListAsArray( "30/60/90", "/" )
? aData
cStr := FW_ArrayAsList( aData, "/" )
? cStr := FW_ArrayAsList( { Date(), "TEXT ", 234.56 }, ";", .T. )
//--> "12-12-2023;TEXT;234.56"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 29 guests