The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 getn limitation on custom drop-down list length
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

aplotnikov

Germany
162 Posts

Posted - 12/07/2016 :  05:37:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin: 8.6.0SR3 64-bit
Operating System: Win7Pro

Hi,

I use the "getn" command to get an entry number from a drop-down list as follows:

//<source_dataset> - a string-type dataset containing list entries
//nn - number of list entries in the <source_dataset>
loop(ii,1,nn) {%Z="%Z %(<source_dataset>[ii]$)"};
getn (whatever) iEntryNumber:Z

The number of list entries is limited by 512 even through the length of %Z-string not exceeding 6290 bytes.

What is the reason of this limitation? Is it possible to get rid of it? If not I would appreciate for any helpful hint how to organize a drop-down list with more than 512 entries by any alternative method.

Regards,

Alexei

Edited by - aplotnikov on 12/07/2016 05:40:25 AM

yuki_wu

896 Posts

Posted - 12/07/2016 :  10:06:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Alexei,

I think you can use string instead of %Z:

loop(ii,1,nn) {str$=str$+ " " + %(<source_dataset>[ii]$)};
getn (whatever) iEntryNumber:str$;

Hope it helps.

Regards,
Yuki
OriginLab

Edited by - yuki_wu on 12/07/2016 10:07:41 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000