Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Unanswered

Anyone able to create a SAFOptionArray using visual studio vb.net?

Posted on by 70

Trying to use the SAFOptionArray.  Unable to locate documentation using this object.  When converting a program from 6.5 to 7.0, able to get a SAFOptionArray object defined.  When trying to write a program from scratch, the SAFOptionArray object is not available to use.  I am looking for the steps to use this control from scratch. 

  • Barry Flynn Profile Picture
    Barry Flynn 3,090 on at
    Re: Anyone able to create a SAFOptionArray using visual studio vb.net?

    Bruce

    I've tangled with this a in a screen built in 7.x.

    I found that:-

    - You don't need the SAFOptioArray.

    - The Names of the Radio Buttons must conform to a pattern that the kernel appears to require.

    I was creating a couple of buttons with a "basic name" of cFunction, and I found that I had to use control names of _cFunction_0  _cFunction_1 and _cFunction_2

    The Chk event Sub was

       Private Sub _cFunction_0_ChkEvent(ByRef ChkStrg As System.String, ByRef RetVal As System.Int16) Handles _cFunction_0.ChkEvent

    (Although I ended up with no code in that event, but my vague vague memory is that using that "Sub" caused the event to fire as I wanted. (There was some code in there at one stage - but it vanished during testing.)

    Hope that is some help.

    Barry

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,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans