General information
Category:
Coding, syntax & commands
I created a function that will check a condition on a field whose name is passed in. What is the correct syntax to get access to the data in that field?
Below is the code that I am working with:
parameters ls_field
**ls_field is the field name that I need to test against
select employee
IF SEEK(thisform.r_cempcode)
****** this is where I need the help **********
if employee.ls_field = "D"
if empty(thisform.r_days)
messagebox("Appropriate meddage")
endif
else
if empty(thisform.r_hours)
messagebox("Appropriate Meassage")
endif
endif
endif
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only