Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Character String!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048344
Message ID:
00048506
Vues:
22
>>>>Can someone tell me, is it true that in VFP Character field alway hae a seperator like ' ' around them??
>>>>If I use ALLT(textbox) is that going to give me text only or text with seperator like ' ' around it??
>>>
>>>It will give you text only. The " ' " is used to show that whatever is a character string.
>>
>>Hi, Dorris
>>
>>What you mean by whatever is a character string. If what you said is right, it is weird that when I pass the value of the textbox (array=ALLT(textbox)) to a e-mail program using MAMAPI. It gives me ' ' around my text. The textbox consists an e-mail address, but it won't send the mail because the address is inside a '' like ('sam@aol.com'). Obviously, there no such e-mail address.
>>Let make an assumption saying it does pass the value with ('') around it, how can I get rid of that!!
>>
>>Any idea with appreciate!!
>
>Samuel could you show us the exact command(s) you use for the MAMAPI? Perhaps you (or your program) are putting the '' around the text at another point. In VFP you pass a character parameter with '' around it (DO MyProg with 'EMAIL') and the value arrives as EMAIL with no quotes. Perhaps this program behaves differently with parameters.
>
>HTH
>Barbara


Hi Barbara,

Basically I have two form, the first form contains a textbox for e-mail and a command button to simiply call another form while pass the value of the textbox (do form mail with ALLT(ThisForm.Text1.Value)).
Then on the second form I create a Textbox and an Editbox for e-mail subject and body, as well as a command button that call up the e-mail program (do email with ALLT(ThisForm.email), ALLT(ThisForm.Text1.Value), ALLT(ThisForm.Edit1.Value)).
The ThisForm.email is parameter that I pass from the first form. And I double check the value by using (=MessageBox(ALLT(ThisForm.email))). And it shows me the correct value which is a valid e-mail address.

The email program that I using is written by Matt McDonnell. If you go to the file download section you should able to find it. In that program all it does is pass the parameters, make MSMAPI ole call and send the message to specific
email address. The program works because it always give me a message for
undeliverable mail because there a "'" around the e-mail address.

Any ideas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform