Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Answered

VB Code

Posted on by 555

Hi,

     In customization, i want to read a text box Value and call Sql Procedure.Please

send any sample "VB" codes..

Thanks,

Thillai

  • Verified answer
    ThillaiRaja Profile Picture
    ThillaiRaja 555 on at
    RE: VB Code

    Mr .JustinHat  it's working Very thanks !!!!!!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VB Code

    For the example below, you'll need to have create or use a DH file that is the same structure as what the stored proc is returning.

    Global csr_SampleSP as Integer

    Dim xString As String

    Dim xSQL As String

    xString = Trim(GetObjectValue("cCustId"))

    xSQL = "xsp_SampleSP " & SParm(xString)

    Call sql(csr_SampleSP, xSQL)

    serr1 = SFetch1(csr_SampleSP,bSampleSP,LenB(bSampleSP))

    if serr1 <> NOTFOUND then

        Call MessBox("CustomerId: " & Trim(bSampleSP.CustID))

    end if

    Call SqlFree(csr_SampleSP)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans