Addressing the RecID Field in a VTable

Chuck Pelto cbpelto at pcisys.net
Fri Jul 7 13:45:28 CDT 2006


On Jul 6, 2006, at 11:46 PM, Ruslan Zasukhin wrote:

> On 7/7/06 2:14 AM, "Chuck Pelto" <cbpelto at pcisys.net> wrote:
>
>> What is the proper call in order to identify the VField of a VTable
>> that holds the RecID of a given record?
>>
>> Using RB2006....
>>
>> // where tDatabase is the V4RB2 database
>>
>> dim theVTable as VTable
>> dim theVField as VField
>>
>> theVTable = tDatabase.Table("tbl_test")
>>
>> theVField = theVTable("RecID") // ????????????????
>>
>> or
>>
>> theVField = theVTable(RecID) // ????????????????
>>
>>
>> or
>>
>> Something else?
>
>   dim fldRecID as VULong
>
>   fldRecID = tbl.Field( "RecID" )

Seems to me that the code (above) would return the recID NOT the  
field in the VTable that holds the recID.

Or am I mistaken here?

Regards,

Chuck



More information about the Valentina mailing list