on 03-28-2010 10:51 PM
Hello,
This code snippet never returns the actual LName value.
The LName value that is returned is always NULL.
local stringvar LName := trim({Employee.Last_Name});
local stringvar FName := trim({Employee.First_Name});
if (FName NOT EQUAL "") then
FName
else
LName;
TIA,
Jacques
If what you are trying to do is access Lname outside that formula, you must declare that variable as Global (not Local).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Thank you for your reply
.
However, the problem exists with or without
the local variables.
The First_Name value is returned, but the
Last_Name value is always NULL.
WhilePrintingRecords;
if {Employee.First_Name} = "" then
{Employee.Last_Name}
else
{Employee.First_Name};
What is wrong with the syntax/logic?
-jc
Hello,
Thank you for your reply
The First_Name value is returned, but the
Last_Name value is always NULL.
WhilePrintingRecords;
if {Employee.First_Name} = "" then
{Employee.Last_Name}
else
{Employee.First_Name};
When the First _Name is empty, the
formula should display the Last_Name.
However, the Last_Name value that is returned
is always NULL. The Last_Name vallues should
be "Smith", "Jones",,
Why does the formula always return NULL for
the Last_Name?,
-jc
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.