Thema: Delphi Extract word from string

Einzelnen Beitrag anzeigen

Benutzerbild von GPRSNerd
GPRSNerd

Registriert seit: 30. Dez 2004
Ort: Ruhrpott
239 Beiträge
 
Delphi 10.4 Sydney
 
#3

Re: Extract word from string

  Alt 13. Feb 2009, 14:15
Something like this will do for the 1st and the 2nd number, assumed that they are always separated by an x:

Delphi-Quellcode:
copy(listbox.items.strings[3], 1, pos('x', listbox.items.strings[3])-1);
copy(listbox.items.strings[3], pos('x', listbox.items.strings[3])+1), MAX_INT);
Stefan
  Mit Zitat antworten Zitat