newrole Posted July 9, 2009 Report Share Posted July 9, 2009 salve, sono di nuovo qua con un'indovinello. Prendiamo ad esempio il mio codice: Use sms while true do a = sms.receive(-1) b=sms.get(a) Print b se il messaggio è breve mi restitusice: [+39348xxxxxxxx, testi del messaggio , nr id, true] altrimenti se il messaggio è un pò lungo ma nei 160 caratteri, mi restituisce: [+39348xxxxxxxx,...<4>] esattamente come l'ho scritto con i puntini ed <4> perchè...presumo che il problema sia nel comando str. grazie in anticipo..... Link to comment Share on other sites More sharing options...
xMetallicax Posted July 9, 2009 Report Share Posted July 9, 2009 non c'è alcun problema, è solo che ciò che è da stampare su schermo è troppo lungo per cui l'istruzione print abbrevia mettendo i puntini ed indicando il numero di elementi complessivi dell'array Link to comment Share on other sites More sharing options...
newrole Posted July 9, 2009 Author Report Share Posted July 9, 2009 ho risolto così.... while true do a = sms.receive(-1); b=sms.get(a); t = lower(trim(b["text"])); print b["sender"]+t; end e così mi stampa tutto ...... Link to comment Share on other sites More sharing options...
xMetallicax Posted July 9, 2009 Report Share Posted July 9, 2009 si, la stringa viene stampata per intero Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now