Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

VB Code

(0) ShareShare
ReportReport
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

*This post is locked for comments

  • 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans