Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updateble Cursor
Message
From
27/03/1998 14:48:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00087742
Message ID:
00087781
Views:
29
>>Hi Jim
>>
>>I copied the fragment below from Cetin Basoz response. Usually when I need to have updateble cursor I utilize the same approach. Does anybody know another workarround to create updateble cursor.
>>
>>select .f. as lSelected,a,b,c,.. ;
>> from mytables into cursor myCursor
>>use dbf("myCursor") in 0 again alias tcSelector
>>
>>Thanks in advance,
>>Igor Gelin, system developer
>
>Ed Pikman's approach is:
>CREATE CURSOR ...
>SELECT ... Into Array ...
>INSERT Into ... From Array
>You must be sure that array is not too big (65K limit), but you can workaround this by looping.
>
>Do you know another approach, may be using properties of the cursor?
>
>Thanks in advance
>Igor Gelin, System developer
Another approach could be a view that wouldn't update base tables. And for Ed's method instead of SQL ..into array, append from could fit well (or scan..endscan). I don't remember the original question but maybe a list is a solution too (when rowsource = alias or fields automatically move rec pointer to the appropriate record).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform