Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Amembers() problem
Message
 
 
To
12/02/2019 10:58:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01666312
Message ID:
01666333
Views:
48
>>>>I have an object with some properties.... In the debug i can see al properties, but when i use amembers it returns an incorrect number....11 instead the real number of properties contained in the object... Look at the image where you can see all the properties and the the amembers() result...
>>>
>>>Amembers without any flags would only return info for public properties.
>>>Another reason for it to return 11 is that you are not using mdot prefix.
>>
>>I try to explai better the situation with last tests i did.
>>I noted that with amembers i see only properties that in some way i put as controlsource of objects in my form... Once i have shown them in the form amembers begons to see them...
>>Some info.... My object is not a result of a simple scatter command.... It comes from a rest call (using Web Connection) where the json result has been serialized by the web connection class...
>>I receive all for example 15 fields in this object and those that i link to a control (like a textbox) then i can see in amembers. The others are not seen.... Another operation to see them is in the debug if i select every single properties in the watch window... if i double click on every single values i see amembers() increasing the value it returns...
>
>One thing that I missed in there, you are getting a JSON string and deserializing using WC. Did you ever tried using Marco's json handler instead (Marco Plaza)? Or from Brian Marquis (http://fox.wikis.com/wc.dll?Wiki~JSONParser).

I used Wc, because i made also the rest server with WC so it was easy to use it also for client side.... But i look at you suggests.
Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform