Need help with cfront ocx and assignfield

SuddenSudden Member Posts: 3
edited 2004-12-23 in Navision Attain
When i try to write data to navision using the assignfield:

int newRec;
Object t = (Object)"Some text";
newRec = this.cf.AllocRec( hTable );
this.cf.AllowRecordExists();
this.cf.BWT();
this.cf.InitRec( hTable, newRec );
this.cf.AssignField( hTable, newRec, 1, ref t );
if( !this.cf.InsertRec( hTable, newRec ) )
MessageBox.Show( "Feil" );
this.cf.EWT();
this.cf.FreeRec( newRec );

this don't work, i have seen the various solutions to this problem in this forum but can't get them to work.

Anyone have a complete example of a solution in c#?
Sign In or Register to comment.