web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

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

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

I have the same question (0)
  • Paul Phillips Profile Picture
    590 on at

    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

  • Derrick0828 Profile Picture
    65 on at

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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans