PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] Trace all first font
[WD19] Trace all first font
Iniciado por guest, 02,dic. 2015 02:58 - 3 respuestas
Publicado el 02,diciembre 2015 - 02:58
Hi all,

Can someone share coding or easy tips how to trace all first font in a letter.

For example : ABC COMPANY PVT LTD

The result shoud be ACPL.

Thanks for help.

Regards,
Mujahid
Publicado el 02,diciembre 2015 - 03:53
Hello Mujahid

I think what you are asking is to be able to extract the first letter of each word in a string.

Use the ExtractString() function will extract each word and then use Middle() to extract the first letter from each word

Regards
Al
Publicado el 02,diciembre 2015 - 09:26
Hey guys,

Out of my head something like:
BaseString is string = "ABC COMPANY PVT LTD" FinalString is string = "" FOR EACH STRING Word OF BaseString SEPARATED BY " " FinalString+=Left(Word,1) END
Cheers,

Peter H.
Publicado el 06,diciembre 2015 - 00:55
Hi AI and Peter H,

Thanks a lot for the tips and coding.

Its work. :spos::spos::spos::)

Regards,
Mujahid