space.
This should always work
form.name = trim(form.name);
lastspace = REFind("^(.*)[[:space:]]([^[:space:]]+)$",form.name,1,true);
if(lastspace.pos[1]){
firstname =
Trim(Mid(form.name,lastspace.pos[2],lastspace.len[2]));
lastname =
Trim(Mid(form.name,lastspace.pos[3],lastspace.len[3]));
}
else{
firstname = form.name;
lastname = "";
}
> -----Original Message-----
> From: Pascal Peters
> Sent: maandag 14 juni 2004 10:05
> To: CF-Talk
> Subject: RE: Help with string manipulation please
>
> You should collect both names. It is very common in other
> languages to have more than one word in a last name. Or what
> if hey put their last name first?
>
> This said
>
> Lastname = REReplace(form.name,"^.*[[:space:]]","") OR
> LastName = ListLast(form.name," ")
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

