Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object not found when creating
Message
From
20/09/2007 12:15:25
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
20/09/2007 11:48:35
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01255744
Message ID:
01255769
Views:
14
>>I'm getting an error that oHL7ComponentSeparator is not found. If I'm creating it on that line, why is it looking for it?
>>
>>
>>	**********************************************************
>>	PROCEDURE ProcessData(Company, DataExchangeType, DataArea, KeyFieldValue)
>>
>>		DODEFAULT()
>>
>>		LOCAL strProcessData, strAcknowledgment
>>
>>		strProcessData = ''
>>
>>		THIS.oHL7ComponentSeparator = CREATEOBJECT('empty')
>>
>
>Because that property is not defined before that row. You could use:
>
>PROCEDURE ProcessData(Company, DataExchangeType, DataArea, KeyFieldValue)
>          DODEFAULT()
>          LOCAL strProcessData, strAcknowledgment
>          strProcessData = ''
>          IF PEMSTATUS(this,[oHL7ComponentSeparator],5)
>             THIS.oHL7ComponentSeparator = NULL
>          ELSE
>             ADDPROPERTY(this,[oHL7ComponentSeparator])
>          ENDIF
>          THIS.oHL7ComponentSeparator = CREATEOBJECT('empty')
>...
>
I tried using the NULL before it, but I got an error on that too. Not with your code, but with mine.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform