Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

SL 7.0 New screen new table(s) error on Auto-LineNbr

Posted on by 65

Hi,

 Has anyone encountered a problem on creating a new screen using VB.Net in Dynamics SL 7.0 with SP1 with new tables.  My problem is when assigning the LineNbr field to be auto-numbered in the SAFGrid.  The datatype is smallint (Short in .Net).  It is giving me an error that it cannot convert System.Int16 to System.IntPr.  If I change the datatype to Int (Integer in .Net), it doesn't do anything as far as the autonumbering is concern.  Appreciate any inputs on this.  Thanks.

*This post is locked for comments

  • Derrick0828 Profile Picture
    Derrick0828 65 on at
    Re: Re: SL 7.0 New screen new table(s) error on Auto-LineNbr

    Thanks for the response.  Yeap I got this to work with that code.  Thanks again.

  • Paul Phillips Profile Picture
    Paul Phillips 590 on at
    Re: SL 7.0 New screen new table(s) error on Auto-LineNbr

    The system griping about not having an IntPtr field sounds like the LineNbr field not being passed to the detail setup call by its memory address. Try adding AddressOf() around your DetailSetup call in the form load event as in this example:

    MemHandle = DetailSetup(c2, Spread1, bGLTran.AddressOf("LineNbr"), bGLTran, PNULL, PNULL, PNULL)

     

    Hope this helps,

    Paul Phillips

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans