Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with SFReport Update
Message
From
13/07/2000 16:19:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Stonefield
Title:
Problem with SFReport Update
Miscellaneous
Thread ID:
00392040
Message ID:
00392040
Views:
41
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
Next
Reply
Map
View

Click here to load this message in the networking platform