Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert to excel book
Message
De
09/09/2005 10:08:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Convert to excel book
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01048102
Message ID:
01048102
Vues:
71
hi all,

any help idea ,to store(convert) this data via vfp code to 3 sheets at my xls.book
as.
"ADSL 1 " and all fields at one sheet1
"B ISDN " ----------------------sheet2
"LL " ----------------------sheet3
Select * from am ;
  where INLIST( val(char3), 100, 201, 202, 203 );
 and ( inList( upper(allt(telno)), "ADSL 1", "B ISDN  ") or upper(left(telno,2)) = "LL" );
   into table am2 nofilter
  

CLOSE all
USE am2

gcDelimName = ALIAS( ) + '.xls'

gcDelimFile = PUTFILE('excel_file:', gcDelimName, 'xls')

IF EMPTY(gcDelimFile)  && Esc pressed

   CANCEL

ENDIF

COPY TO (gcDelimFile) FIELDS char1 ,char3 , char7, char8, char9, char13 ,telno, char26, char27, char28   XLS

DROP TABLE am2 
thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform