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?
e-mailadresses
- Detlef Hoefner
- Posts: 312
- Joined: Sat Oct 08, 2005 9:12 am
- Location: Germany
- Contact:
Re: e-mailadresses
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
Please provide some more details about your problem.
What data do you have and what you want to do with them?
Regards,
Detlef
Re: e-mailadresses
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.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: e-mailadresses
jds,
This is an example:
This is an example:
Code: Select all
#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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: e-mailadresses
In case that you want to use a GET:
Code: Select all
#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
Re: e-mailadresses
Thank you Antonio ! But it is necessary to put "outlook.exe" between "open" and "mailto:"
Hasta luego !
Hasta luego !
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: e-mailadresses
Jds,
Thanks for your feedback
Thanks for your feedback
Re: e-mailadresses
Sorry Antonio, it also works without referencing to outlook
josé
josé
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: