[V4RB] vCursor.importText & booleans

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Nov 16 11:28:59 CST 2003


on 11/16/03 1:48 AM, Pedro fp at lists at pedro.net.au wrote:

> But I might not know what works until I can figure out why this works
> in one projects ...
> 
>    s = "SELECT lunation"
>    for i = 1 to 4
>      s = s + ", phase" + str( i )
>    next
>    s = s + " FROM moon WHERE RecID = 0"
> 
>    c = mDatabase.SQLselect( s )
> 
>    c.importText( f, chr(9), chr(13) )
>    mDatabase.baseObject( "moon" ).flush
> 
> but this doesn't work in another ...
> 
>    s = "SELECT * FROM "
>    s = s + db.mTCDB( toTable ).name
>    s = s + " WHERE RecID = 0"
> 
>    c = db.SQLSelect( s )
> 
>    c.importText( f(1) , chr(9), chr(13) )
>    db.mTCDB( toTable ).flush
> 
> Watching in the debugger shows that in the first c is a read-write
> cursor but is read only in the 2nd. So I guess the question  now is
> what would cause one cursor to be read-write & the other read only

Hi Pedro,

If you use 1.9.8 then you need on creation of cursor specify record locks
params. 

You want import, so you need make cursor ReadWrite

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list