' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   T h e r e m i n o   A u t o m a t i o n   -   S t r i n g s 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 '   E a r l y   v e r s i o n s   o f   T h e r e m i n o   A u t o m a t i o n 
 
 '   d i d   n o t   d i s t i n g u i s h   b e t w e e n   n u m b e r s   a n d   s t r i n g s . 
 
 
 
 '   T h e   v a r i a b l e s   w e r e   a l l   t h e   s a m e   ( V 1   t o   V 9 ) 
 
 '   a n d   t h i s   w a s   v e r y   s i m p l e ,   b u t   i n   s o m e   c a s e s 
 
 '   t h e   r e s u l t s   b e c a m e ,   n o t   i n t u i t i v e   a n d   u n p r e d i c t a b l e . 
 
 
 
 '   S o   f r o m   v e r s i o n   3 . 0   t h e r e   a r e   t w o   t y p e s   o f   d a t a . 
 
 '   N u m b e r s   ( d o u b l e   p r e c i s i o n   f l o a t i n g   p o i n t   n u m b e r s ) 
 
 '   S t r i n g s   ( s i m p l e   s e q u e n c e s   o f   A S C I I   c h a r a c t e r s ) 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   U S E R   D E F I N E D   V A R I A B L E S   -   E X A M P L E S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   V a r i a b l e   N u m e r i c   G o o f y             '   N u m e r i c a l   v a r i a b l e   ( i n i t i a l l y   =   0 ) 
 
 '   V a r i a b l e   S t r i n g     P l u t o             '   S t r i n g   v a r i a b l e       ( i n i t i a l l y   =   " " ) 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   P R E D E F I N E D   V A R I A B L E S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   v 1   v 2   v 3   v 4   v 5   v 6   v 7   v 8   v 9     '   N u m e r i c a l   v a r i a b l e s 
 
 '   s 1   s 2   s 3   s 4   s 5   s 6   s 7   s 8   s 9     '   S t r i n g   v a r i a b l e s 
 
 
 
 '   S t r i n g   t e x t   m u s t   b e   e n c l o s e d   w i t h   " " 
 
 '   E x a m p l e s : 
 
 v 1   =   1 2 3 4 5 . 6 7 
 
 s 1   =   " T h i s   i s   a   s t r i n g " 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   S T R I N G   T O   N U M B E R   C O N V E R S I O N S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   T h e   s y m b o l   " = "   i s   u s e d . 
 
 '   T h e   d e c i m a l   s e p a r a t o r   i s   a l w a i s   t h e   d o t . 
 
 '   E x a m p l e s : 
 
 v 1   =   " 1 2 3 4 5 . 6 7 " 
 
 P r i n t   v 1 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   N U M B E R   T O   S T R I N G   C O N V E R S I O N S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   T h e   " F o r m a t "   I n s t r u c t i o n   i s   u s e d . 
 
 '   F o r   m o r e   i n s t r u c t i o n s   s e a r c h :   " V B N E T   F o r m a t "   o n   G o o g l e 
 
 '   E x a m p l e s : 
 
 P r i n t   F o r m a t ( 1 2 3 4 . 5 6 ,   " 0 0 0 0 0 0 . 0 0 0 " ) 	 	 ' R e s u l t   " 0 0 1 2 3 4 . 5 6 0 " 
 
 P r i n t   F o r m a t ( 1 2 3 4 . 5 6 ,   " 0 . 0 " ) 	 	 	 ' R e s u l t   " 1 2 3 4 . 6 " 
 
 P r i n t   F o r m a t ( 1 2 3 4 . 5 6 ,   " 0 " ) 	 	 	 	 ' R e s u l t   " 1 2 3 5 " 
 
 P r i n t   F o r m a t ( M a t h _ P I ,   " " ) 	 	 	 	 ' R e s u l t   " 3 . 1 4 1 5 9 2 6 5 3 5 8 9 7 9 " 
 
 P r i n t   F o r m a t ( 1 2 3 4 . 5 6 ,   " + 0 . 0 0 0 ; - 0 . 0 0 0 " ) 	 ' R e s u l t   " + 1 2 3 4 . 6 "   o r   " - 1 2 3 4 . 6 " 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   S T R I N G   C O M P A R A T I O N S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   S t r i n g s   c o m p a r a t i o n s   a r e :   >   <   =   > =   < =   < > 
 
 '   T h e   r e s u l t   " T r u e "   o r   " F a l s e "   c a n   b e   p r i n t e d 
 
 '   o r   u s e d   i n   t h e   c o n d i t i o n a l   i n s t r u c t i o n   " I f " . 
 
 
 
 '   E x a m p l e s : 
 
 P r i n t   " D u c k "   =   " C a t "                         '   R e s u l t   " F a l s e " 
 
 
 
 P r i n t   M i d ( " D u c k " ,   4 ,   1 )   =   " k "       '   R e s u l t   " T r u e " 
 
 
 
 s 1   =   " D u c k " 
 
 I f   s 1   =   " D u c k "                                     '   C o n d i t i o n   i s   T r u e 
 
 	 B e e p                                                 '   t h e   B e e p   i s   e x e c u t e d 
 
 E n d I f 
 
 S t o p 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   S T R I N G   F U N C T I O N S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   M i d ( s t r i n g ,   i n d e x ,   l e n )       '   E x t r a c t s   c h a r a c t e r s ,   i n d e x   s t a r t s   a t   1 
 
 '   L e n ( s t r i n g )                               '   T h e   r e s u l t   i s   t h e   n u m b e r   o f   c h a r a c t e r s 
 
 '   T r i m ( s t r i n g )                             '   R e m o v e   l e a d i n g   a n d   f i n a l   s p a c e s 
 
 '   P a d L e f t   ( s t r i n g ,   l e n g t h )     '   R e t u r n s   t h e   s t r i n g   p a d d e d   w i t h   s p a c e s   u p   t o   " l e n g t h " 
 
 '   P a d R i g h t   ( s t r i n g ,   l e n g t h )   '   R e t u r n s   t h e   s t r i n g   p a d d e d   w i t h   s p a c e s   u p   t o   " l e n g t h " 
 
 
 
 '   S t r ( n u m b e r )                               '   T u r n   a   n u m b e r   i n   s t r i n g   w i t h   t h e   m a x   n u m b e r   o f   f i g u r e s 
 
 '   F o r m a t ( n u m b e r )                         '   T u r n   a   n u m b e r   i n   s t r i n g   w i t h   t h e   m a x   n u m b e r   o f   f i g u r e s 
 
 '   S t r ( n u m b e r ,   s t y l e )                 '   T u r n   a   n u m b e r   i n   s t r i n g   w i t h   s p e c i f i e d   s t y l e 
 
 '   F o r m a t ( n u m b e r ,   s t y l e )           '   T u r n   a   n u m b e r   i n   s t r i n g   w i t h   s p e c i f i e d   s t y l e 
 
 
 
 '   U C a s e ( s t r i n g )                           '   T r a n s f o r m s   t h e   e n t i r e   s t r i n g   t o   u p p e r c a s e 
 
 '   L C a s e ( s t r i n g )                           '   T r a n s f o r m s   t h e   e n t i r e   s t r i n g   t o   l o w e r c a s e 
 
 '   W C a s e ( s t r i n g )                           '   T r a n s f o r m s   t h e   s t r i n g   c a p i t a l i z e d 
 
 '   C h a r s ( s t r i n g ,   n u m b e r )           '   R e t u r n s   t h e   f i r s t   c h a r   o f   t h e   s t r i n g   r e p e a t e d   " n "   t i m e s 
 
 
 
 '   C h r ( c o d e )                                   '   R e t u r n s   t h e   c h a r a c t e r   w i t h   t h e   s p e c i f i e d   c o d e 
 
 '   A s c ( s t r i n g )                               '   R e t u r n s   t h e   c o d e   o f   t h e   f i r s t   c h a r a c t e r   o f   t h e   s t r i n g 
 
 '   B i n ( n u m b e r )                               '   R e t u r n s   a   s t r i n g   w i t h   t h e   b i n a r y   r e p r e s e n t a t i o n   o f   t h e   n u m b e r 
 
 '   F r o m B i n ( s t r i n g )                       '   R e t u r n s   a   n u m b e r   c o n v e r t e d   f r o m   t h e   b i n a r y   s t r i n g 
 
 '   H e x ( n u m b e r )                               '   R e t u r n s   a   s t r i n g   w i t h   t h e   h e x   r e p r e s e n t a t i o n   o f   t h e   n u m b e r 
 
 '   F r o m H e x ( s t r i n g )                       '   R e t u r n s   a   n u m b e r   c o n v e r t e d   f r o m   t h e   h e x a d e c i m a l   s t r i n g 
 
 
 
 '   T h i s   f u n c t i o n   r e t u r n s   a   s t r i n g   w i t h   a l l   t h e   " O l d S t r "   r e p l a c e d   w i t h   " N e w S t r " 
 
 '   R e p l a c e ( s t r i n g ,   O l d S t r ,   N e w S t r ) 
 
 
 
 '   T h i s   f u n c t i o n   r e t u r n s   a   s t r i n g   w i t h o u t   t h e   c o m m e n t s   s t a r t i n g   f r o m   ' 
 
 '   R e m o v e C o m m e n t s ( s t r i n g ) 
 
 
 
 '   T h e s e   f u n c t i o n s   c o u n t   a n d   e x t r a c t   s u b s t r i n g s   s e p a r a t e d   b y   s p a c e s 
 
 '   G e t S e p a r a t e d S t r i n g C o u n t ( s t r ) 
 
 '   G e t S e p a r a t e d S t r i n g ( s t r ) 
 
 
 
 '   T h e s e   f u n c t i o n s   c o u n t   a n d   e x t r a c t   s u b s t r i n g s   w i t h   a n y   s e p a r a t o r   ( s t r i n g   t o o ) 
 
 '   G e t S e p a r a t e d S t r i n g C o u n t ( s t r ,   s e p a r a t o r ) 
 
 '   G e t S e p a r a t e d S t r i n g ( s t r ,   s e p a r a t o r ) 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   S T R I N G   C O N S T A N T S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   C R L F         '   S t r i n g   c o n t a i n i n g   C R   a n d   L F   ( c h a r a c t e r s   1 0   a n d   1 3 ) 
 
 '   C R 	     '   S t r i n g   c o n t a i n i n g   C R   ( c h a r a c t e r   1 3 ) 
 
 '   L F 	     '   S t r i n g   c o n t a i n i n g   L F   ( c h a r a c t e r   1 0 ) 
 
 '   C L S           '   S t r i n g   c o n t a i n i n g   t h e   c h a r a c t e r   1 2   ( t h a t   c l e a r s   t h e   p r i n t   a r e a ) 
 
 '   N B S P 	     '   R e t u r n s   a   s t r i n g   c o n t a i n i n g   a   n o n - b r e a k a b l e - s p a c e 
 
 '   T A B 	     '   R e t u r n s   a   s t r i n g   c o n t a i n i n g   a   T A B   ( t a b u l a t i o n )   ( c h a r a c t e r   9 ) 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   T I M E   F U N C T I O N S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   N o w ( )                                     '   R e s p o n d s   a   s t r i n g   w i t h   d a t e   a n d   t i m e 
 
 '   T o d a y ( )                                 '   R e s p o n d s   a   s t r i n g   w i t h   t h e   d a t e 
 
 '   D a t e ( y e a r ,   m o n t h ,   d a y )   '   C r e a t e   a   d a t e   f r o m   n u m e r i c   v a l u e s 
 
 '   E l a p s e d T i m e ( )                     '   T h e   t i m e   f r o m   t h e   p r o g r a m   s t a r t   i n   s e c o n d s   a n d   f r a c t i o n s 
 
 
 
 
 
 