Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Builder and Errors
Message
 
À
15/11/1999 15:02:02
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00291270
Message ID:
00291704
Vues:
20
Rex,

Geesh, if you guys keep coming up with the problem *and* the solution, I can retire <bg>. Thanks for post!

>1) Add a record to the MMBDMeta table
>cKey = "GRIDCOLUMN"
>cMethod = "ERROR"
>mMemo =
>LPARAMETERS nError, cMethod, nLine, tcSys16, toErrObj
>THIS.Parent.Error(nError, cMethod, nLine, tcSys16, toErrObj)
>
>Add the following code to the mmSec_CGrid.ColumnSetUp
>
>SELECT * FROM MMBDMeta ;
> WHERE UPPER(MMBDMeta.cKey) = 'GRIDCOLUMN ' ;
> INTO CURSOR MM_TempColumnCode
>
>SCAN
> *--- Check if the header already contains code
> lcMethod = ALLTR(MM_TempColumnCode.cMethod)
> lcCode = ThisForm.oObject.Columns[tnColumn].Controls[1].ReadMethod(lcMethod)
> IF EMPTY(lcCode)
> *--- The method is empty. Replace with specified code
> ThisForm.oObject.Columns[tnColumn].WriteMethod(lcMethod,MMBDMeta.mMemo)
> ENDIF
>ENDSCAN
>
>USE IN MM_TempColumnCode
>
>Thanks
>
>Rex
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform