Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 3rd October 2016, 12:41
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 567
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Wink Getting string value from selected item of listbox (DsClistbox)
Baan: Baan IVc4
C/S: Both

Hello everyone,

I am experimenting with 3gl user interface objects and created a list box with several items in it.

Following code gives id of selected item from listbox, but how can we get string associated with selected item of listbox ?

get.object(l.list, DsNselectedId, si)

I searched on the forum but could not find anything except Mark's post containing above line.

Thanks,
Vishal
Reply With Quote
Sponsored Links
  #2  
Old 3rd October 2016, 16:11
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,287
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Hi,

First you need to create a string array with all your list items in the list box.

Say -
Code:
 string myitems(10,300)
       myitems(1,1) = "article"
       myitems(1,2) = "printers"
       myitems(1,3) = "graph"
       myitems(1,4) = "books"
       myitems(1,5) = "logo"

Now, in your event loop you can get the id using -

Code:
case EVTLISTBOXSELECT:
                   combox_id = evt.listbox.item_id(event)

combox_id will have the index of the list item.

Now, just use myitems(1,combox_id) to get the related string -

e.g.

Code:
message(myitems(1,combox_id))
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #3  
Old 6th January 2017, 10:57
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 567
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Hi Bhushan,

Sorry for replying late. Actually I am on Baan IV. So can you guide me how this can be handled on Baan IV ?

I shall be grateful if you put up a small example in related to Baan IV.

Vishal
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling Unit functionality baazigar Distribution, Transportation & Warehousing 4 19th February 2012 15:54
Help regarding tools session rahul.kolhe22 Tools Development 4 22nd January 2010 13:31
problems with stpapi.zoom.option Finnigan AFS/DDC/OLE: Function servers 5 3rd November 2009 14:04
File Browser Bogdan Tools Development 52 7th January 2004 08:17


All times are GMT +2. The time now is 16:06.


©2001-2017 - Baanboard.com - Baanforums.com