Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi/AS400 Data Area problem

Status
Not open for further replies.

lespaul

Programmer
Feb 4, 2002
7,083
US
Hello again! Hopefully someone has used the SCD400 components and can give me some guidance. I have placed an AS400 component on my data module and set the PLUAlias to my TDatabase component. I have also placed an TDataArea, tied it to the AS400 and defined the Library and Data Area properties. I can read the data area fine. I take this information transfer it to an Excel spreadsheet, update the information and then transfer it back to delphi. When I try to update the data area I get the following error:

Expression not allowed for parameter DTAARA

Here is the code I'm using to try to set the DataArea:
Code:
lastvoucher := excelsht.Cells[1, 10].Text;
JMSData.daLastVoucher.value := lastvoucher;

I'm not sure if the error is being generated by Delphi or by the AS400. If someone can help me figure out where the error is being generated, I would really appreciate it!

Thanks!


Leslie
landrews@metrocourt.state.nm.us

There are 10 types of people in the world -
those who understand binary
and
those who don't!
 
OK, it must be something weird in my test library, when I use a dataarea in a live library it works fine!! thanks anyway!

leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top