<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Feb 2018 18:54:18 Z</lastBuildDate><pubDate>6 Feb 2018 08:18:24 Z</pubDate><description>Hi all,&#13;
I'm new to WD22 (coming from Clarion) &#13;
I want to extract the domain name from the email address .  I need to find the @ in the string and then extract the string from that position (@)  to the end&#13;
&#13;
gwasEmailAddress is string&#13;
&#13;
gwasEmailaddress     = "walter@thisdomain.nu"&#13;
gwi2Position@          = Position(gwasEmailAddress , "@", 0, FromEnd)&#13;
However&#13;
Position returns 7 so counted from the start of the string?!&#13;
&#13;
What's wrong with my code? Does anyone has an example how to extract @thisdomain.nu  from the string?&#13;
&#13;
Best regards&#13;
Walter - Sabra - The Netherlands</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain/read.awp</link><title>Position fromEnd return position from start. Get domain name from email adres</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64432/read.awp</comments><pubDate>6 Feb 2018 18:54:18 Z</pubDate><description>and now you are answering your own question, and with the correct answer &#13;
at that...&#13;
&#13;
a position is ALWAYS from the beginning…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64432/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64432/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain/read.awp">Position fromEnd return position from start. Get domain name from email adres</source><title>Re: Position fromEnd return position from start. Get domain name fromemail adres</title></item><item><author>walter</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64428/read.awp</comments><pubDate>6 Feb 2018 16:17:18 Z</pubDate><description>Yes! off course : the @ is the separator in the string.&#13;
&#13;
But I still wonder why Position(String, "@", 0 , FromEnd) starts coun…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64428/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64428/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain/read.awp">Position fromEnd return position from start. Get domain name from email adres</source><title>Re: Position fromEnd return position from start. Get domain name from email adres</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64427/read.awp</comments><pubDate>6 Feb 2018 15:38:45 Z</pubDate><description>Hi Walter,&#13;
&#13;
&gt; gwasEmailAddress is ansi string&#13;
gwasDomain is ansi string&#13;
&gt; &#13;
&gt; gwasEmailaddress     = "walter@thisdomain.nu"&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64427/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain-64427/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64420-position-fromend-return-position-from-start-get-domain/read.awp">Position fromEnd return position from start. Get domain name from email adres</source><title>Re: Position fromEnd return position from start. Get domain name fromemail adres</title></item></channel></rss>
