Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8587551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:35:46+00:00 2026-06-11T22:35:46+00:00

In my code I want to assign Parameter Direction but do not know how

  • 0

In my code I want to assign Parameter Direction but do not know how to do.

  Dim sqlParam(0 To 3) As SqlParameter
  sqlParam(0) = New SqlParameter("@reg", SqlDbType.VarChar, 20)
  sqlParam(0).Value = reg
  sqlParam(1) = New SqlParameter("@action_code", SqlDbType.VarChar, 30)
  sqlParam(1).Value = action_code
  sqlParam(2) = New SqlParameter("@user", SqlDbType.VarChar, 40)
  sqlParam(2).Value = Session("user_code").ToString()
  sqlParam(3) = New SqlParameter("@@ret_val", SqlDbType.[Char], 1, )

I want to assign ParameterDirection of “@@ret_val”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:35:48+00:00Added an answer on June 11, 2026 at 10:35 pm

    Assuming you’re calling a stored procedure, and are interested in its return value:

    sqlParam(3).Direction = ParameterDirection.ReturnValue
    

    If it’s an output parameter, try:

    sqlParam(3).Direction = ParameterDirection.Output
    

    Or check out the MSDN documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to assign a default value if url parameter is not set. Something
I use PhpStorm. I want to make snippets of code and then assign shortcuts
I want code in which a div fades out if mouse does not hover
I want code to run whenever I create a new object. For example, see
i want code to check whether the user in logged in or not. I
enter code here Want to remove items from a Main list , but give
In the following code I want to use the dilate function but I don't
I want to assign values to server control properties in my code behind to
I want to assign the html content to iframe control from asp.net code behind
My function receives a parameter 'value', of type object. I want to assign it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.