Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Snippets by SQL
Message
De
15/12/2014 03:38:40
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
15/12/2014 03:29:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01612276
Message ID:
01612285
Vues:
44
Hi Tore,

thanks for the response.

The problem is, that, as I wrote in the OP, I simply do not know uniquefield or ORDER for that. (It would be ORDER, Unique is not ordered for display :) )

This is a generic exporter that simply puts the cursor in ALIAS() into Excel. It does a bit more, but there is no interface for order, or it would need to remove the order information because it should not be exported.
Also my synthic unique ID should not be visible.

Lutz

>Pseudo code:
>m.llFirst = .T.
>Do While .T.
>   If m.llFirst
>      Select Top 100 * From yourtable Order By youruniquefield Into Cursor yourcursor
>   Else
>      Select Top 100 * From yourtable Order By youruniquefield Where youruniquefield > m.lcUniquedata Into Cursor yourcursor
>   Endif
>   FeedIntoExcel()
>   If Reccount() = 100
>      Goto 100
>      m.lcUniquedata = youruniquefield
>   Else
>      Exit
>   Endif
>Enddo
>
>
>>Hi,
>>
>>todays problem #1
>>
>>I have a generic table, I know nothing about it then taht wahta I could read via VFP functions.
>>
>>In special:
>>-no order
>>-no index
>>
>>I need to move this into an excel spread sheet.
>>I do this with an array to write into Excel
>>Now the table is a bit large, so I get OLE Errors.
>>
>>Should not be a problem, I can write in chunks.
>>
>>But now I need to chunk the table
>>Like (example)
>>First 100 recs
>>Next 100 recs
>>....
>>Last recs
>>
>>Is there a way to do this with VFP SQL (note: no chance for SELECT TOP, no ORDER given ...)
>>
>>Any other idea how to do this?
>>
>>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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform