[V4RB] GoToRecID(xx)

Bill Mounce BillMounce at Comcast.net
Thu Jul 6 21:28:25 CDT 2006


I figured out the answer to my question. It is simple:

mTagged.tblTagged.RecID = tRecID

THis replaces the //??????? below.

Bill

-----

I am not understanding Ruslan's shorthand for the replacement of  
"GoToRecID(xx)" from Valentina version 1. I use a cursor to find a  
certain record, and then I need to walk down the RECID of that table.

The help file says:

        If RecordExists(myRec) then
            RecID = inRec
        end if


In my application, the database is mTagged and the table is  
tblTagged. So I find the record in the cursor (named "curExport") and  
then do the following:

   Dim tRecID as Integer
   Dim r as Boolean

   tRecID = val(curExport.FIELD("RECID").GetString)
   r = mTagged.tblTagged.RecordExists( RecID )
   if r = false then
     msgbox "Could not locate the RecID."
   else

     //???????

   end if

I guess my question is, if this is right so far, what do I write into  
the //??????? to actually go to that specific record in the table?

Thanks.

Bill



More information about the Valentina mailing list