Ik zit met het volgende probleem, ik heb een telefoonnummer invoerveld aangemaakt met automatische invoer berekening voor de juiste telefoonnotatie.
Echter krijg ik het niet voor elkaar om onderscheid te maken tussen de 3cijferige netnummers en de viercijfige netnummer. Dus bijv. (012) 123 23 34 of (01234) 123 456.
De eerste heb ik wel voor elkaar gekregen met behulp van deze berekening:
Vraag
Bob
Hallo Filemakkers,
Ik post vandaag als newbie
Ik zit met het volgende probleem, ik heb een telefoonnummer invoerveld aangemaakt met automatische invoer berekening voor de juiste telefoonnotatie.
Echter krijg ik het niet voor elkaar om onderscheid te maken tussen de 3cijferige netnummers en de viercijfige netnummer. Dus bijv. (012) 123 23 34 of (01234) 123 456.
De eerste heb ik wel voor elkaar gekregen met behulp van deze berekening:
Let ( [
input = GetAsText ( Filter ( telefoonnummer ; "0123456789" ) ) ;
chk = Length ( input ) = 10
];
Case
(
not chk ; TextColor ( telefoonnummer ; RGB ( 220 ; 0 ; 0 ) ) ; //geen tiencijferig nummer, druk af in rood
"(" & Left ( input ; 3 ) &
") " &
Middle ( input ; 4 ; 3 ) &
" " &
Middle ( input ; 7 ; 2 ) &
" " &
Middle ( input ; 9 ; 2 )
))
maar ik krijg het dus niet voor elkaar om in een berekening die combinatie te maken.
Kan iemand mij opweg helpen aub.
Link naar reactie
3 antwoorden op deze vraag
Aanbevolen berichten
Doe mee aan dit gesprek
Je kunt dit nu plaatsen en later registreren. Indien je reeds een account hebt, log dan nu in om het bericht te plaatsen met je account.