Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using =cursorsetprop()
Message
From
31/10/1997 23:47:15
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00057442
Message ID:
00057756
Views:
42
>>>>When adding a new record, all I want to do is SCATTER. If I want to
>>>>SAVE, then I will GATHER. If I do not want to save, then I will do nothing.
>>>>Am I not using =cursorsetprop() correct?
>>>Robert,
>>>
>>>If you are using scatter and gather then you are using the old FP 2.x way of buffering data edits. If you want to use buffering in VFP then don't bother with the scatter and gather stuff. I would suggest chosing to do this one way or the other.
>>>
>>>First off your cursorsetprop function call is not complete, it does not specify the alias that you want to set the property for and if the wrong work area is selected you may be setting buffering in the wrong place. Secondly, record buffering will casue VFP to automatically issue a tableupdate if the record pointer is moved in the buffered work area, table buffering does not do this and requires you to do the tableupdate explicitly instead.
>>
>>thanks Jim - that was a great answer.. do you have the time to give me a
>>code example of what you are talking about?
>Robert,
>
>The Help file has the complete syuntax listing for the cursorsetprop() function and it says;
>
>CURSORSETPROP(cProperty [, eExpression] [, cTableAlias | nWorkArea])
>
>That is three arguments, the first is the property you want to set, the second is the value you want to set it to, and the third is the alias or work area number that you want this to happen in.
>
>Example: CursorSetProp("BUFFERING",5,"Customer")
>
>will set buffering to optimistic table in the work area whose alias name is Customer. Using the entire syntax removes any possibility of strange things happening because the worng area is selected when you issue the function call.
>
>BTW, for future speed in getting this kind of information you can simply highlight the CursorSetProp() function in your edit window and press F1 to get to the help entry for that function. This will work for any function or command you may be struggling with.
thanks Jim and Edward- yous have been very helpful in getting me through the hard times with vfp50.. :)))))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform