[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Wez Furlong
[Note: To/CC headers trimmed] // Create a VT_EMPTY value $empty = new VARIANT(); GoTo(wdGoToBookmark, $empty, $empty, "BookmarkName"); On Wed, 26 Feb 2003, Richard Quadling wrote: > Hi Harald. > > The problem with some of the VBA functions is that the first and last > parameter need to be set a

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
Genius! Thank you very much. Can this example be added to the PHP Manual? All the online examples I've seen relate to functions which you can pass the first few params and no more. In this case having to pass the first and last param is not mentioned. This simple example demonstrates the use of

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Harald Radi
hi richard > The problem with some of the VBA functions is that the first and last > parameter need to be set and the ones in the middle have no > meaning and > cannot be present. This can only be achieved by using named > parameters. The > GoTo method, as a function, in VBA would be ... sooner

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
Hi Harald. The problem with some of the VBA functions is that the first and last parameter need to be set and the ones in the middle have no meaning and cannot be present. This can only be achieved by using named parameters. The GoTo method, as a function, in VBA would be ... GoTo(wdGoToBookmark,

[PHP] RE: PHP, Windows and COM.

2003-02-25 Thread Harald Radi
hi richard, currently there is no way of calling a function with named arguments. your proposed array syntax wouldn't allow for passing arrays. on the other hand variant arrays can only be indexed arrays and not hash arrays so i could treat all string indices as named parameters. this would be