Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Properties in an Array
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00177391
Message ID:
00177401
Views:
37
>Actually, I want to put the property name and value into a list box, but the properties that I need begin with a certian character sequence, so I need to be able to bypass others and keep some. I figured that I could add items to an Array, add certain properties to the list box for updating, then write the value back to the property if changed. I hope that helps?
>
Thom,

The the container, page or form level you can parse the controls collection such as
LOCAL loControl, lnPtr
lnPtr = 1
WITH this && container, page, form
    FOR EACH loControl IN .controls
        IF loControl.<property> = <condition>
           DIMENSION .aProperties[lnPtr,2]
           .aProperties[lnPtr,1] = <propertyname>
           .aProperties]lnPtr,2] = <propertyvalue>
           lnPtr = lnPtr + 1
        ENDIF
     ENDFOR
ENDWITH

RETURN
You will have to make provisions for included containers, etc, but this is the general idea.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Reply
Map
View

Click here to load this message in the networking platform