Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property is not found
Message
From
29/07/2019 11:09:45
 
 
To
27/07/2019 10:46:30
General information
Forum:
Visual Studio
Category:
Troubleshooting
Miscellaneous
Thread ID:
01669781
Message ID:
01669808
Views:
57
>Just treat this as hypothetical question. Why would a property be available in dev mode ( Version(2)# 0 ) but not at runtime ( Version(2)= 0 )?
>
>I appreciate your kind attention to this my question and dilema, I restate the question:
>I have class called "MyClass". It has two properties, "MyClass.Foo" defined as string and MyClass."Foo1" defined as a numeric (o mage to Calvin Hsia).
>When i execute my app in dev mode and step through the code where these properties are assigned values:
>MyClass.Foo = ""
>MyClass.Foo1 = 0.00
>life is good.
>
>Next i run the app without debugging assuming the best and these property assignments are made without issue.
>
>Now i am ready to execute my app in run time and my code fails at this line:
>MyClass.Foo1 = 0.00
>
>The error is: "Property "Foo1 is not found."
>
>As I said, it is not a property.
>
>If it were a property then a reason would be, you are instantiating a different class than you thought. We really didn't see your actual code piece including instantiation of the object.
>
>>Your being too literal.
>>Why would a property be there in dev mode but not at runtime?
>>has that ever happened to you?
>>
>>>I have class called "MyClass". It has two properties, "Foo" defined as string and "Foo1" defined as a numeric (o mage to Calvin Hsia).
>>>When i execute my app in dev mode and step through the code where these properties are assigned values:
>>>Foo = ""
>>>Foo1 = 0.00
>>>life is good.
>>>
>>>Next i run the app without debugging assuming the best and these property assignments are made without issue.
>>>
>>>Now i am ready to execute my app in run time and my code fails at this line:
>>>Foo1 = 0.00
>>>The error is: "Property "Foo1 is not found."
>>>
>>>VFP 8 by the way.
>>>
>>>Any clues?
>>
>>
>>Foo =  ""
>>Foo1 = 0.00
>>
>>
>>This is not a property assignment. You are assigning values to memory variables.
>>
>>
>>Foo1 = 0.00 
>>
>>giving an error about property is nonsense, again it is not a property assignment but a memory variable. Are you sure those don't have a . (dot) prefix and included inside a with ... endwith block?
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Reply
Map
View

Click here to load this message in the networking platform