[Gambas-user] scan() example not working for me

lawrence pires piresl at ...626...
Sun Jan 6 00:44:39 CET 2008


i have taken the example code from
here<http://gambasdoc.org/help/lang/scan>and wraped it into a click,
(trying to build a progress bar...)


PUBLIC SUB Button1_Click()
DIM sResult AS String
DIM sLine AS String
DIM sElt AS String

EXEC "df" TO sResult

FOR EACH sLine IN Split(sResult, "n")
  FOR EACH sElt IN Scan(sLine, "* * * * *")
    PRINT sElt; "|";
  NEXT
  PRINT
NEXT
END

this is the exact example taken. why does it not compile and error?, is it
me or does the documention need updating? i was expecting output when button
pressed? or am i to blame?



More information about the User mailing list