Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor.GetRecordData ?
Message
From
21/10/2004 19:34:08
 
 
To
21/10/2004 18:51:27
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00953526
Message ID:
00953564
Views:
22
I think I understand. I was thinking that I could emulate the a c# class type bizobj with properties for each field.
so that instead of something like this:

WITH loBCSTypes
.Open
.New
.Replace( "cCategory" , "GL" )
.Replace( "cShortName", "ASSET" )
.Replace( "cName", "Asset" )
.Update()
Endwith
I could have something like

WITH loBCSTypes
.Open
.New
.cCategory = "GL"
.cShortName = "ASSET"
.cName = "Asset"
.Update()
Endwith

I was wondering if this would work?
Alternatly can you suggest another way to do this without the Replace?

Mike

>Hi Mike:
>
>GetRecordData simply returns a SCATTER NAME object based on the current record for the cursor object on which you have called themethod. Say you have a couple of CDEs. They are in different datasessions. You want to get a record from one CDE into another. Before, this was not really possible unless you created a single record table (saved to disk) which would get across the datasession barrier. You could also create a single record cursor, run it through the CursorToXML function and return the XML. With GetRecordData, you can return the record details as an object. What you do with the object that is returned to you is totally your business.
>
>HTH
>
>>I was just wondering what the Cursor.GetRecordData does if no target object is specified. I would
>>guess that it adds record fields to the current cursor object, but it doesn�t appear to do that and the target object is specified as being optional.
>>
>>Also, are you using this method for accessing data and creating data objects? Are there any gotchas?
>>
>>Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform