Syntax in Lotus Script - HELP!

So we’ve created a button to add a location document to the users client into their names.nsf.

I’ve got everything set except I’m having a problem with the doc.disabledports = “” part.

here’s the code:

doc.DisabledPorts = “SPX”

the problem is I want to disable the LAN0 and COM1 ports as well, what is the syntax for doing this? I’ve added multiple lines like this:

doc.DisabledPorts = “SPX”

doc.DisabledPorts = “LAN0”

doc.DisabledPorts = “COM1”

except it will only disable the last one, the first two will stay enabled.

I’ve tried it this way as well:

doc.DisabledPorts = “SPX, COM1, LAN0”

and

doc.DisabledPorts = “SPX;COM1;LAN0”

and even

doc.DisabledPorts = “SPX” ; “COM1” ; “LAN0”

Still no dice.

What am I missing?

Subject: RE: Syntax in Lotus Script - HELP!

Hi John, try this:

Dim disPorts(0 to 2) as string

disPorts(0) = “SPX”

disPorts(1) = “LAN0”

disPorts(2) = “COM1”

doc.DisabledPorts = disPorts

I think this should work.

Emily.

Subject: RE: Syntax in Lotus Script - HELP!

Thanks! Those worked great!

Subject: Syntax in Lotus Script - HELP!

Hi,

for all those wich use for a solution:

“How to Modify Which Client Ports Are Enabled With LotusScript”

http://www-1.ibm.com/support/docview.wss?id=swg21145214

Bye

Dominik

Subject: RE: Syntax in Lotus Script - HELP!

John,

I always do it this way

Dim port_array(2) as string

port_array(0)=“SPX”

port_array(1)=“LAN0”

port_array(2)=“COM1”

doc.DisabledPorts = port_array()

HTH

Mike