len an array
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
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://fivetechsupport.com/forums/
https://fivetechsupport.com/forums/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.