Welcome! Log In Create A New Profile

Advanced

Combining 2 fields as one 1 field

Posted by Kobus 
Kobus
Combining 2 fields as one 1 field
March 20, 2022 11:57PM
Hi
Hope someone can help me with this. I want 2 fields combined as 1 field and displayed in my form on the same time of which I will use later in some reports. . I've tried the following code but something I do wrong as it does not combine it.


EDT_LastNameInitials is string
EDT_LastNameInitials = EDT_LastName + EDT_Initials
MyResult is string = StringBuild(EDT_LastNameInitials, EDT_LastName, EDT_Initials)

I used to do in Clarion the following: EDT:LastNameInitials = CLIP(Lastname)&' '&Clip(Initials)

Thank you
Al
Re: Combining 2 fields as one 1 field
March 21, 2022 12:14AM
Hello Kobus

I would use EDT_LastNameInitials = nospace(EDT_LastName) + " " + nospace(EDT_Initials)

Regards
Al
Kobus
Re: Combining 2 fields as one 1 field
March 21, 2022 09:42AM
Hi Al

Thank you very much for replying. It's doing exactly what I needed. Very similar of Clarion. Still have to learn so much but eventually I will get there hopefully.

Regards

Kobus
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: