contact.MobilePhoneNumber generate error

gecomail

Member
Licensed User
Longtime User
Hi,i have this problem :
when the value of contact.MobilePhoneNumber contain one or more character like space, the retrieve of the value of this field generates errors.
In other case, when the fields contain only number and the character "+", i haven't problem.
anyone can help me ?
 

JOTHA

Well-Known Member
Licensed User
Longtime User
Hello gecomail,

i have checked your problem:

... when the value of contact.MobilePhoneNumber contain one or more character like space, the retrieve of the value of this field generates errors. ...

I used the following code:
B4X:
contact.MobileTelephoneNumber = ""&Telefon.Text&""
... and I tried the following number (exactly als written below):

+49 (7171) 104 66 30

and it works fine.

Do you use Modules?

If yes, your code must be like this:
B4X:
contact.MobileTelephoneNumber = ""&ModulName.Telefon.Text&""
In this case the name of the module is "ModulName". ;)

I hope this will help you.
 

gecomail

Member
Licensed User
Longtime User
JOTHA you have right

Hello gecomail,

i have checked your problem:



I used the following code:
B4X:
contact.MobileTelephoneNumber = ""&Telefon.Text&""
... and I tried the following number (exactly als written below):

+49 (7171) 104 66 30

and it works fine.

Do you use Modules?

If yes, your code must be like this:
B4X:
contact.MobileTelephoneNumber = ""&ModulName.Telefon.Text&""
In this case the name of the module is "ModulName". ;)

I hope this will help you.

Maybe that my problem with the format of .MobileTelefonNumer was that i assign this value to node of TreeView.
Thank you Jotha for your help.
:signOops:
 
Top