I'm trying to add an entry to an IIS security table called IpGrant.
I can GET a collection from the entry - it comes to VFP as an array -
but I don't seem to be able to pass the array back.
In the code below I have left out the step that would add an entry,
I'm just reading IPGrant, printing it out, then trying to put it back
and lastly reading it again
All I ever get in the OBJSECURITY.IPGRANT list is the first element of the array
I'm sure this is either really simple, or completely impossible - does anyone know?
Regards
Griff
Keep [Smile]ing
I can GET a collection from the entry - it comes to VFP as an array -
but I don't seem to be able to pass the array back.
In the code below I have left out the step that would add an entry,
I'm just reading IPGrant, printing it out, then trying to put it back
and lastly reading it again
Code:
? "Getting IPSecurity List "
?
OBJSMTP= GETOBJECT("IIS://localhost/smtpsvc/1")
OBJIPSECURITY = OBJSMTP.GET("IPSecurity")
OBJCURRENTLIST = OBJIPSECURITY.IPGRANT
COUNT = 0
FOR EACH OBJIP IN OBJCURRENTLIST
? OBJIP
COUNT = COUNT + 1
NEXT
*objCurrentList.Add("1.1.1.1,255.255.255.255")
OBJIPSECURITY.IPGRANT = objCurrentList
OBJNEWLIST = OBJIPSECURITY.IPGRANT
COUNT = 0
FOR EACH OBJIP IN OBJNEWLIST
? OBJIP
COUNT = COUNT + 1
NEXT
objSMTP.Put("IPSecurity",objIpSecurity)
OBJSMTP.SETINFO
All I ever get in the OBJSECURITY.IPGRANT list is the first element of the array
I'm sure this is either really simple, or completely impossible - does anyone know?
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are not good for you.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are not good for you.