Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default call function

This is my call function everytime I try to call
I get a Compile error Expected list separator or )
the error is here
call openSDEWorkspace(Server As String, Instance As
String, User As String, _
Password As String, Optional Database As
String = "", _
Optional version As String
= "SDE.DEFAULT") As IWorkspace
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default call function

You need to be aware of two things:
1.-HOW you define your routine on code modules, you do
something like this:
Function openSDEWorkspace(Server As String, _
Instance As String, User As String, _
Password As String, _
Optional Database As String = "", _
Optional version As String = "SDE.DEFAULT") _
As IWorkspace
' your openSDEWorkspace code comes here
End Function
2.- HOW you use the routine and you do it with something
like the following:
Dim IWS as IWorkspace
.....
IWS=openSDEWorkspace(ServerValue, InstanceValue, _
userValue, passwordValue, DataBaseValue, _
versionValue)
' you can use the IWS value here
.....
You can use your code using the call function, but you can
not use the IWorkspace value it will return to you like
follows:
.....
call openSDEWorkspace(ServerValue, InstanceValue, _
userValue, passwordValue, DataBaseValue, _
versionValue)
' you don't have the IWorkspace value
....


Francisco Mariscal
fcomariscal at hotmail dot com



-----Original Message-----
This is my call function everytime I try to call
I get a Compile error Expected list separator or )
the error is here
call openSDEWorkspace(Server As String, Instance As
String, User As String, _
Password As String, Optional Database As
String = "", _
Optional version As String
= "SDE.DEFAULT") As IWorkspace
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call a worksheet (as a function) Bernie Excel Discussion (Misc queries) 18 April 20th 09 06:15 PM
to call subfunction from a function pol Excel Discussion (Misc queries) 4 October 16th 08 07:26 PM
Is there a do not call function? pokdbz Excel Discussion (Misc queries) 2 December 27th 07 04:00 PM
How do i call a function to a cell? Bill Excel Worksheet Functions 3 February 17th 07 12:54 AM
how i can call the function reneabesmer Excel Worksheet Functions 2 May 2nd 05 12:13 PM


All times are GMT +1. The time now is 12:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"