FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper e-mailadresses
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
e-mailadresses
Posted: Sun Feb 07, 2010 09:25 AM

e-mail adresses
Can anyone tell me if it is possible to incorporate and use e-mailadresses from Xbase++ fields (with FWH) iand if yes how to do it?

Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
Re: e-mailadresses
Posted: Mon Feb 08, 2010 09:47 AM

Sorry, i can't help because i don't understand your question.

Please provide some more details about your problem.
What data do you have and what you want to do with them?

Regards,
Detlef

Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: e-mailadresses
Posted: Tue Feb 09, 2010 07:50 PM

I want to put f.e. an emailadres in a field of an adres file and by clicking on the emailadres open the outlook program f.e.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: e-mailadresses
Posted: Tue Feb 09, 2010 08:31 PM
jds,

This is an example:
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oDlg, oSay, oCursor

   DEFINE CURSOR oCursor HAND

   DEFINE DIALOG oDlg

   @ 2, 2 SAY oSay PROMPT "test@gmail.com"

   oSay:lWantClick = .T.
   oSay:bLClicked  = { || ShellExecute( oDlg, "Open", "mailto:" + oSay:GetText(),,, 0 )
   oSay:oCursor    = oCursor

   ACTIVATE DIALOG oDlg CENTERED

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: e-mailadresses
Posted: Tue Feb 09, 2010 08:34 PM
In case that you want to use a GET:
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oDlg, oGet, oCursor, cEmail := "test@gmail.com      "

   DEFINE CURSOR oCursor HAND

   DEFINE DIALOG oDlg

   @ 2, 2 GET oGet VAR cEmail

   oGet:bLClicked  = { || ShellExecute( oDlg, "Open", "mailto:" + oGet:GetText(),,, 0 ) }
   oGet:oCursor    = oCursor

   ACTIVATE DIALOG oDlg CENTERED

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: e-mailadresses
Posted: Mon Feb 15, 2010 04:23 PM

Thank you Antonio ! But it is necessary to put "outlook.exe" between "open" and "mailto:"
Hasta luego !

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: e-mailadresses
Posted: Tue Feb 16, 2010 09:47 AM

Jds,

Thanks for your feedback :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: e-mailadresses
Posted: Thu Mar 04, 2010 07:00 PM

Sorry Antonio, it also works without referencing to outlook
josé

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: e-mailadresses
Posted: Fri Mar 05, 2010 05:44 PM

Jds,

Thanks again :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion