You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old October 20th, 2008, 10:32 AM   #1
aiki202
Member
United States

aiki202 is offline
 
aiki202's Avatar
 
Join Date: Aug 2007
Location: Pennsylvania
Posts: 102
RSView32 & MicroSoft Forms 2.0 ListBox

I cannot get a Microsoft Forms 2.0 activex listbox to populate from VBA code. I am using RSView32 version 7.4. I can get text to populate in it from a command button, but not from VBA. Here is my code that adds a blank line, but no text to the listbox:

Dim tagTemp_Ingredient As tag
Set tagTemp_Ingredient = gTagDb("RECIPE\Temp_Ingredient")
tagTemp_Ingredient.Value = strRecipeValues(1) 'this string variable is populated through other code, I checked and it always
'contains a value
gCommand.Execute ("Invoke Admin.ListBox1.AddItem(Temp_Ingredient)")
Set tagTemp_Ingredient = Nothing

I do not think I can populate the listbox from the invoke command in VBA with a VBA native value such as strRecipeValues(1) (string array). I think I need to use a tag. I have the Temp_Ingredient tag assigned to the value parameter in the ListBox1 properties.

Thanks
  Reply With Quote
Old October 20th, 2008, 10:46 AM   #2
aiki202
Member
United States

aiki202 is offline
 
aiki202's Avatar
 
Join Date: Aug 2007
Location: Pennsylvania
Posts: 102
gCommand.Execute ("Invoke Admin.ListBox1.AddItem(Temp_Ingredient)")
The Temp_Ingredient is located in a root folder which I did not insert in its path. It is now working.

RECIPE\Temp_Ingredient is the tag.

That was only about 2 hours going around in a circle. Live and learn.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


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

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

Similar Topics
Thread Thread Starter Forum Replies Last Post
RSVIEW32 database load problem gizmo LIVE PLC Questions And Answers 5 October 30th, 2012 01:26 PM
Microsoft ComboBox in RSView32 Application plcnovel LIVE PLC Questions And Answers 5 February 23rd, 2007 05:24 PM
Mirroring RSView32 Web Server PCTDavis LIVE PLC Questions And Answers 0 January 7th, 2004 08:08 AM


All times are GMT -5. The time now is 08:30 AM.


.