Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffered data showing on users machine
Message
From
17/12/2006 23:37:39
 
 
To
16/12/2006 03:27:10
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01177968
Message ID:
01178467
Views:
23
sele inward
tableupdate(.t.,.t.)

Thats the safest way as at any time u add or edit only one record in that cursor
It is equivalent to what u wand to achive.

Rajesh


>i have converted my code :
>
>i placed code as below
>in load event :
>
>
>cursorsetprop("buffering",5,'inward')
>cursorsetprop("buffering",5,'inward1')
>
>
>
>
>in "ADD" command button
>
>sele inward
>
>
>
>
>** single records in this parent table, but i am using table buffering because if my record pointer move to next records it update the record to table so i am not using row buffering.
>
>appe blank
>repl reco1 with str(recno)+str(seconds(),10,3) && Records no -1
>go recno()
>sele inward1  && multiple records in this child table.
>appe blank
>repl reco1 with inward.reco1
>go recno()
>
>
>
>
>in "SAVE" command button
>
>
>sele inward
>tableupdate(.f.,.t.) && single record
>sele inward1
>tableupdate(.t.,.t.) && Multi records
>
>
>
>after saving first invoice, if i add one more invoice by cliking on "ADD" button
>
>
>sele inward
>appe blank
>repl reco1 with str(recno)+str(seconds(),10,3)   && Records no -2
>
>
>
>it is showing me record no -2, but after tableupdate(.f.,.t.) it should be -1
>
>should i use like :
>
>
>sele inward
>tableupdate(.t.,.t.)
>
>
>
>
>warm regards,
>mk.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform