TOPIC: ERROR: uninitalized member: 0
#675
ERROR: uninitalized member: 0 3 Years, 6 Months ago
Hi,

I am receiving an error message when when I click the edit tab in a standalone project similar to the tutorial in the users manual. The message is:
ERROR: uninitalized member: 0

However, when I open the book from within the workspace, I do not get the error message when I click the edit tab. Instead I get the edit access I created in the library. Also, when I click the report tab while running from the workspace or standalone, it shows the report with no data (even though there is data in the db).

Not sure how to continue. Any help would be apperciated.
 
 
#676
Re:ERROR: uninitalized member: 0 3 Years, 6 Months ago
Hi, if you don't post the code you use for Access and Reports with problems, I think it will be very hard to help you. ;)
 
 
Mauro
 
#678
Re:ERROR: uninitalized member: 0 3 Years, 6 Months ago
Hi and thanks, the code follows:

    Database

Code:

create myinterred(rownum, lastname, firstname, ward, lot, space, deathdate, notes) key(rownum)

    Library: mylib

My_InterredAccess
Code:

#(Access myinterred
title: "Interred Manager"
(rownum group: 0) nl
(firstname group: 0) (lastname group: 1) nl
(deathdate: 0) nl
(ward group: 0) (lot group: 1) (space group: 2) nl
(notes group: 0)
)


MyInterredReport
Code:

#(Params
title: "Interred Report"
(Query
query: myinterred
)
)


    Book: mybook

Cover
Code:

<h1>Cemetery Manager</h1>

Contents
Code:

<h1>Contents</h1>
<p><a href="Edit Interred">Edit Interred</a></p>
<p><a href="Print Interred">Print Interred</a></p>


Edit Interred
Code:

My_InterredAccess

Print Interred
Code:

My_InterredReport

    PersistantWindow:

Code:

PersistentWindow(#(Book mybook, "Cemetery Manager"') newset: "myset"')
 
 
#679
Re:ERROR: uninitalized member: 0 3 Years, 6 Months ago
Hi, in My_InterredAccess there is an error:

(deathdate: 0) nl

should be:

(deathdate group: 0) nl

For the report, I have filled some random data and tried to run it. It appears to work.
 
 
Mauro
 
#680
Re:ERROR: uninitalized member: 0 3 Years, 6 Months ago
Thanks so much. I must have looked at that peice of code a dozen times. Sometimes a second pair of eyes is all it takes.

Once again, thank you for you time.

- John