Link to home
Start Free TrialLog in
Avatar of formadmirer
formadmirerFlag for United States of America

asked on

VFP Access Data from Cursor Alias

I'm trying to figure out how to access data from a cursor alias.
Normally I do this:
lnResult=SQLEXEC(pnConnection,lcQuery,'cCursor')

Open in new window

and the data is at cursorname.fieldname

I am trying to do this:

lcCursor = "cCursor"
lnResult=SQLEXEC(pnConnection,lcQuery,lcCursor)

Open in new window


and ALLTRIM(cCursor.fieldname) doesn't work.

maybe it's cause I've been up for nearly 30 hours now that it's not working??
SOLUTION
Avatar of Olaf Doschke
Olaf Doschke
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of formadmirer

ASKER

Thanks for the help. I just stuck with doing things the way I have done before and works.
Less work for me too ;)