<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>has anyone succeeded in adding objects with
read/write access to an application's CDX on the AW70 using the FoxAPI function
an_add_objects()? Adding read only objects works fine, but read/write
access fails although FoxDoc describes it and even gives an example program
(which fails, too). So I'm wondering who is wrong, the function's
documentation or the example program.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a small test program here which tries to add
two RI parameters of a CALC block to the CDX. I could send it to
anyone interested. We've tried this program on virtually every FoxAPI
version we could find and it always failed with return code 76 which is not
mentioned by FoxDoc as a possible return code for an_add_objects().
foxapi.h defines it but the description there doesn't tell much since I don't
pass any NULL pointers. If you change 'rdwrit' to 'rdonly' (for access
type) in the program, it works fine.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I could of course open a data set instead for
writing but I'm reluctant because doing so gives me those annoying command
prompt windows flickering up briefly upon set opening and closing. Data
sets also stay open if someone kills the application with the task
manager.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Sascha
Wildner</FONT></DIV></FONT></DIV></BODY></HTML>
</x-html>