General information
Category:
Coding, syntax & commands
Title:
Get a fieldname from its position
Often I need to read the value of the nth field of a table or cursor without knowing the fieldname in advance. I use the following code to read the value of the 3rd field in a cursor called c1 for example:
local ar[1]
afields(ar,'c1')
? c1.&ar[3,1]
release ar
Is there a simpler way?
Thanks
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