Forum: Multimedia
by Sir Rufo,
31. Okt 2014
Sorry to hear that but I think your delphi is broken.
if this
if not AnsiStartsStr('http://youtube.com', textinput.Text) then
begin
Application.MessageBox('Thats not youtube link', 'Info!', mb_iconWarning);
end;
and that
Forum: Multimedia
by Sir Rufo,
31. Okt 2014
Well if the string starts with http://youtube.com, why do you show the message? Show the message if it NOT starts with. Simple logic
Forum: Multimedia
by Sir Rufo,
31. Okt 2014
check if the string starts with http:// and remove it (temporary variable)
get all characters from the temporary variable until the first / and check if that is equal to youtube.com or ends with .youtube.com
Forum: Multimedia
by Sir Rufo,
31. Okt 2014
Maybe if the text starts with
youtube.com/
http://youtube.com/