|
-
Sep 14th, 2000, 04:02 AM
#1
Thread Starter
Member
is there a way in VB to programatically go through all the passed parameters of a function in a similar way that C uses the argc and argv vectors ?
Also I want to know if there is an API call that can obtain the current routine that VB is in.
What I want to achive is a comma deilimited string that contains all the parameters so that I can do some app debugging. Ie. something like this.....
private sub MySub(p1 as string, p2 as integer, p3 as long)
dim sParams as string
dim i as integer
dim sSubName as string
sSubName=AN_API_TO_GET_THE_CURRENT_SUB_NAME
for i=1 to argc
sParams=sParams & argv(i) ", "
next i
' sParams contains "String Val, 10, 132213, "
MyDebugRoutine ("Entered " & sSubName & " with " & sParams)
.. rest of sub
end sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|