Author Topic: ListView and Variables  (Read 5132 times)

0 Members and 1 Guest are viewing this topic.

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
ListView and Variables
« on: March 12, 2007, 09:24:55 AM »
I am playing around with listboxes and I was wondering does ODCL_ListView_FillList except variables?

i.e.
(setq NewList (list "test1" 'test2" "test3")

(Odcl_ListView_FillList Test_frmMain_listview1 Newlsit)

I can not seem to get this to work.

Thanks
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright 2016

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: ListView and Variables
« Reply #1 on: March 12, 2007, 09:34:34 AM »
listboxes and the listview control are different.  If you have a listbox use (Odcl_ListBox_AddList Project1_Form1_ListBox1 StringList [as List of Strings]).  Are you using the intelligent help in the OpenDCL editor?  It writes the code for you.

jb
James Buzbee
Windows 8

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: ListView and Variables
« Reply #2 on: March 12, 2007, 10:03:49 AM »
Thanks JB,  I was using the listview when I wanted the  listbox *doh*  :ugly:

Yes I am using the IH that's what was throwing me, I couldn't get it to work. (If i were using the right thing I suppose it would work as expected.

Thanks.
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright 2016

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: ListView and Variables
« Reply #3 on: March 12, 2007, 10:14:20 AM »
No problem.  I'm going to be upload some projects for anyone who wants to use / abuse / modify in the next couple of days . . ..
James Buzbee
Windows 8

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: ListView and Variables
« Reply #4 on: March 14, 2007, 05:49:39 AM »
Thanks JB,  I was using the listview when I wanted the  listbox ................

Here's a sample of just that Tim .. http://www.theswamp.org/index.php?topic=15452.msg187717#msg187717
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.