The Code: PUBLIC SUB Main()
' Declare AND initialize variables. DIM c, count AS Integer ' The values are initialized at Zero, by above command DIM c1 AS String ' READ , PRINT , AND count characters. PRINT "Enter characters (Press Carriage Return Twice to quit): " LINE INPUT c1 PRINT c1 count += Len(c1) WHILE NOT (c1 = Eof) LINE INPUT c1 count += Len(c1) PRINT c1 WEND ' PRINT the number OF characters printed. PRINT count & " characters printed." END Gives me output: Enter characters (Press Carriage Return Twice to quit): 657uyguig 657uyguig uyt876896 uyt876896 21 characters printed. Is it OKAY, should I leave it here? I still dont get the feel of the C code here. I cant use ^Z to end the program and print output. :confused: -- View this message in context: http://www.nabble.com/C-Code-character-manipulation---alternatives-tp23611042p23631663.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user