Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class losing a member
Message
From
15/12/2004 10:07:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Class losing a member
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
00969436
Message ID:
00969436
Views:
48
I have a class which handles SPTs, and it's defined like this:
Define Class spt As Table Of Table.prg
	Add Object params As Collection
	cSql=""
	cKeyExp=""
...
This has worked for months, in a dozen instances, without a hitch. Now I'm having a form which calls one of these to check against the item table on SQL server, which also works OK for the first document. Once this document is saved, it gives an error on next document, when it checks for the next item.
 [If Empty(This.params.GetKey(cName))] <-- this is where it happens

Unknown member PARAMS.(nr 1925) in program Sptitemmaster.setparam
 at line nr 189
Sometimes it even gives me an "unknown member This".
This doesn't happen regularly - I've tried to reproduce and went for several documents without a hitch. But I've seen it quite a number of times. I've even rebuilt with recompile, and it vanished for a while, then came back this morning.

Did anyone have something like this?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Next
Reply
Map
View

Click here to load this message in the networking platform