Hi Steve, The reason why wordpad won't startup is because Mapinfo doesn't know where it is. So if you put the entire path in your Run Program statement it will find it. So it would be (in my case) Run Program "C:\Program Files\Windows NT\Accessories\wordpad.exe"
If you want to know the lenght of the words unless they contain a space, you can first select all words without a space. Select Name from tablename where Name Not Like "% %" into tmp And then Select Name from tmp where Len(Name) > 20 into finalresult Good Luck Marco Kok CityGIS Business Software The Hague The Netherlands -----Original Message----- From: Morrier, Steve [mailto:[EMAIL PROTECTED]] Sent: vrijdag 14 juni 2002 15:57 To: 'Mapinfo-List' Subject: MI-L MapBasic Questions Hi Again, Does anyone know why if I put the following line in my code nothing happens, but if I change Wordpad to Notepad is works perfectly!?!? If OpenTxt Then Run Program "Wordpad " + SelFile Also is there any way to count the number of characters in a field, but only count consecutive characters where there is no space? I am using; Len(Name) >20 But this counts the total number of characters including spaces, I would like to stop counting once a space is encountered. I am trying to make sure that no name is greater than 20 characters, unless it is a double barrel word. TIA Steve --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]