len an array
Posted: Mon May 06, 2024 10:43 am
local cString:=""
aLines := hb_ATokens( cString,"|" )
?len(aLines)
give me 1 instead of zero
why ?
aLines := hb_ATokens( cString,"|" )
?len(aLines)
give me 1 instead of zero
why ?
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=44490
give me 1 instead of zero
aLines := HB_ATokens( "one", "|" )
? aLines // -> { "one" }
nageswaragunupudi wrote:give me 1 instead of zero
Because that is the correct answer.
- Code: Select all Expand view
aLines := HB_ATokens( "one", "|" )
? aLines // -> { "one" }
aLines := hb_ATokens( cString,"|" )
if empty(aLines[1] )
alines:= {}
nageswaragunupudi wrote:
- Code: Select all Expand view
aLines := hb_ATokens( cString,"|" )
if empty(aLines[1] )
alines:= {}
This doesn't help either.