e-mailadresses

e-mailadresses

Postby jds » Sun Feb 07, 2010 9: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?
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: e-mailadresses

Postby Detlef Hoefner » Mon Feb 08, 2010 9: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Re: e-mailadresses

Postby jds » Tue Feb 09, 2010 7: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.
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: e-mailadresses

Postby Antonio Linares » Tue Feb 09, 2010 8:31 pm

jds,

This is an example:
Code: Select all  Expand view  RUN

#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: e-mailadresses

Postby Antonio Linares » Tue Feb 09, 2010 8:34 pm

In case that you want to use a GET:
Code: Select all  Expand view  RUN
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: e-mailadresses

Postby jds » Mon Feb 15, 2010 4:23 pm

Thank you Antonio ! But it is necessary to put "outlook.exe" between "open" and "mailto:"
Hasta luego !
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: e-mailadresses

Postby Antonio Linares » Tue Feb 16, 2010 9:47 am

Jds,

Thanks for your feedback :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: e-mailadresses

Postby jds » Thu Mar 04, 2010 7:00 pm

Sorry Antonio, it also works without referencing to outlook
josé
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: e-mailadresses

Postby Antonio Linares » Fri Mar 05, 2010 5:44 pm

Jds,

Thanks again :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 10 guests