Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NoCpTrans, SQL Select
Message
From
04/08/2023 08:27:56
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
NoCpTrans, SQL Select
Miscellaneous
Thread ID:
01686900
Message ID:
01686900
Views:
35
Hi All,

I have a question how NOCPTRANS works with SQL SELECT.

The code is from FoxBin2Prg https://github.com/fdbozzo/foxbin2prg/blob/master/foxbin2prg.prg, the problem is issue https://github.com/fdbozzo/foxbin2prg/issues/95 .

There is a proposed code:
With This As c_conversor_scx_a_prg Of 'FOXBIN2PRG.PRG'
Use (.c_InputFile) Shared Again Noupdate Alias _TABLAORIG
* [Kestutis Laurinavicius] prevent change ole codepage
SET NOCPTRANS TO ole
Select _TABLAORIG.*,Recno() regnum From _TABLAORIG Into Cursor TABLABIN Readwrite
Use In (Select("_TABLAORIG"))
The table is used, the ole field set NOCPTRANS, the whole thing is put into a cursor and the table is closed. (subsequently only the cursor is used - and the field of the cursor is set again to NOCPTRANS)

My question: Does NOCPTRANS changes something on the result cursor? Would it be enough to set only the field of the curssor NOCPTRANS?

Thanks

Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Reply
Map
View

Click here to load this message in the networking platform