I think I've spotted it! The syntax highlighting should have shown you what was going on.... The problem is that you are not terminating the strings correctly (as if you didn't already know that).
inputbox( 'Name Search', // string is terminated correctly 'Enter the name you''re looking for', // that's not a double quote, it is 2 single quotes '' // and 2 single quotes again ); The issue is, if you want to use a quote in a quoted string, you have to quote it. I think I could be a politician having come up with that outrageous double-speak. Most likely, you have a problem with the "you''re" bit. Don't those 2 single quotes between the u and the re look like a double quote? If you paste the text directly into your text editor, you'll see that they are separate characters. A pair of single quotes like that in a pascal string (in source code) equate to a single quote character in the resulting output. You come across the same sort of issue with path-names when you are programming in C since the backslash character is used as an escape character. eg: C:\program files\my files\lib becomes in C: path = strcpy( path, 'c:\\program files\\myfiles\\lib' ) I hope this sorts you out Brendon. Trevor ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Saturday, September 29, 2001 6:16 PM Subject: [DUG]: help with search string in the following code i get the error undetermined string; any ideas SearchText : string; tmp : address; begin //error here// SearchText := inputbox( 'Name Search', 'Enter the name you''re looking for', '' ); if (SearchText <> '') and Find( SearchText ) then begin read( AddressFile, tmp ); eName.text := tmp.Name; eStreetAddress.text := tmp.StreetAddress; ecity.text:=tmp.city; ephone.text:=tmp.phone; emobile.text:=tmp.mobile; eemail.text:=tmp.email; end; end; ... Brendon Toogood E-Mail [EMAIL PROTECTED] --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/