> I put some write to console debugging stuff in unlockAndLoad and it fails on 
> the:
> 
>       goto record($inTable->; $inRecNum)
> line
> 
> I commented out the "start transaction" and it works.

That much I knew.


> Any suggestions?

Change the first part of the method to this, see if it works:

    if (not(execute in 4d("in transaction"; *)))
        if ($inRecNum = -1)
            $inRecNum := record number($inTable->)
        end if

        goto record($inTable->; $inRecNum)
    end if

    c_boolean($timedOut; $readOnlyState)
    $timedOut := false
    $readOnlyState := read only state($inTable->)
    unload record($inTable->)
    read write($inTable->)
    load record($inTable->)

Note that you will have to make sure the record is current before calling this 
when you are in a transaction.

Kind regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoy.org

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to