Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting fields on a form programmatically
Message
From
22/08/2008 05:08:26
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
 
To
22/08/2008 04:44:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01340763
Message ID:
01341048
Views:
11
Ok, something I wil remember for the future, any particular reason for that?



>>I think changing the visible setting is best but if you really want to remove them then you can loop through each object in the forms controlcount something like this:
>>
>>FOR i = 1 TO Thisform.ControlCount
>> IF Thisform.Controls[i].BaseClass = "Label"
>> Thisform.RemoveObject(Thisform.Controls[i].name)
>> ENDIF
>>NEXT
>>
>>>How do does one go about deleting fields on a form programmatically?
>>>
>>>Thx in advance
>___
>Jon,
>
>I would prefer
>
>FOR i = Thisform.ControlCount to 1 step -1
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform