Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with SFReport Update
Message
De
13/07/2000 16:19:16
Jack Liebschutz
Black Mountain Software
Polson, Montana, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Titre:
Problem with SFReport Update
Divers
Thread ID:
00392040
Message ID:
00392040
Vues:
40
I am using the free data engine and the code that was working in the previous version is no longer working. Here is the code:
* Fill the field collection with fields from all tables in our cursor
* collection.

Lparameters tcMetaDataTable
Local laCursors[1], ;
lnCursors, ;
loField

With This

* Clear the collection.

.oFieldsCollection.Clear()

* Fill the collection's aTables array with the tables in our cursor collection.

lnCursors = .oCursorCollection.GetTableArray(@laCursors)
Dimension .oFieldsCollection.aTables[lnCursors, alen(laCursors, 2)]
Acopy(laCursors, .oFieldsCollection.aTables)

* Call the collection's FillCollection method to fill itself with all fields in
* the specified tables.

.oFieldsCollection.FillCollection(tcMetaDataTable)




* Now remove those fields we don't want.

.oFieldsCollection.RemoveItem('NAMES.CUST_ID')
.oFieldsCollection.RemoveItem('RECEIPTS.CUST_ID')

* Set some other properties.

loField = .oFieldsCollection.Item('RECEIPTS.AMOUNT')
loField.cInputMask = '99,999.99'
loField.cFormat = '$'


Any ideas what I need to change.

Jack
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform