> > I have a new database with 1 field of type Picture. > > > > How How How do I create a new record and add a new picture ???!!! > > > > Cursor_AddRecord does not accept a picture as input value. > > > > And I can't use Picture_Set because the record does not exist yet!!! > > > > Ha HA!! :-) > >Standard way: > > curs.SetBlank > > curs.SetField( f1, 5 ) > curs.SetField( f2, "some name" ) > curs.SetPicture( f3, PictHandle ) > > curs.AddRecord() > > >in other words, yes, at first you FILL buffers with new values, >then Add new record.
Ruslan, The BaseObject has only ONE field (picture). Look at VXCMD's Cursor_AddRecord syntax. Cursor_AddRecord does NOT work WITHOUT parameters.
Houston, we have a problem!
Sylvain
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
------------------------------------------------------------- The Valentina mailing list is brought to you by MacServe.net For info on lists services, see http://www.macserve.net/lists.html ©2001 Sylvain Guillemette |