Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Data Types Not Always Sticking
Message
De
27/01/2002 12:07:55
Larry Nobs
Nobs Computer Services, Inc.
Saint Peters, Missouri, États-Unis
 
 
À
27/01/2002 05:45:01
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00611189
Message ID:
00611270
Vues:
20
One thing I had not noticed until you pointed it out is that
? type(oexcel.cells(10,10).value)
without the quotes is improper syntax.

I was trying to create a reproducible error in my example.

I do have a problem in my application where I open an existing spreadsheet and do something like this:

m.serialnum = oxl.cells(10,10).value
if type('m.serialnum') = 'N'
oexcel.cells(10,10).numberformat = "@"
oexcel.cells(10,10).value = str(m.serialnum)
endif

Later in the process I will check again because m.serialnum will update a
character field in a record.

m.serialnum = oxl.cells(10,10).value
if type('m.serialnum') = 'N'
= messagebox('Hey, you should not be a number - I set you to character')
endif

I'll try to search my source for an actual example.


Thanks,


Larry Nobs
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform