Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursoradapter keeps the lettercase
Message
De
27/09/2005 23:28:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Database:
MySQL
Divers
Thread ID:
01053310
Message ID:
01053744
Vues:
13
David,

>After strtran-ing the cUpdateInsertCmd in the BeforeUpdate event as suggested, it works flawlessly. Thanks for pointing me to the right direction! Since I use only one table in the CA, the following code does the job:
>
>cUpdateInsertCmd = strtran(cUpdateInsertCmd,this.Tables,this.Tables,1,1,1)
>

I'm glad that worked. So MySQL is case-sensitive on table names? I assume you don't have the problem on CursorFill() because you're putting the entire Select statement, including table name, into the .SelectCmd property for that.

However, if needed for generic code, you can do the same trap in .BeforeCursorFill() by changing the cSelectCmd incoming parameter (which also persists for CursorRefresh() ). Trapping the cSelectCmd this way allows for generic code to add on extra stuff to the pre-programmed SelectCmd, such as adding a dynamic ORDER BY clause or a WHERE clause (or addition to an existing WHERE clause).
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform