Consultor Eletrônico



Kbase P59802: How to get the second word within a sentence?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Verified

GOAL:

How to get the second word within a sentence?

GOAL:

How to read the second string within a line?

FIX:

Use the function ENTRY, with a space delimiter. For example:

DEF VAR second AS CHAR.
DEF VAR line AS CHAR INIT "This is my entire line".

second = ENTRY (2, line, ' ').

DISPLAY second.