RSView32 & MicroSoft Forms 2.0 ListBox

aiki202

Member
Join Date
Aug 2007
Location
Pennsylvania
Posts
178
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
 
:oops: 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.

o_O That was only about 2 hours going around in a circle. Live and learn.
 

Similar Topics

Hi All I am using A few microsoft combobox activeX controls in my RSView32 project. The problem is everytime i go to that graphic...
Replies
5
Views
3,706
I'm importing an RSView32 project into FTView SE. I'm using Legacy Tag Database Conversion on a virtual machine with Windows XP, I did the first...
Replies
0
Views
368
Hi everybody, I have a rsview32 application, when I try to run it it loads upto 80% system settings and the crashes saying Rsview32 Project...
Replies
3
Views
1,904
Hi Guys I'm having trouble assigning a tag to an activex label on a Multipage Tab. I can assign the tag to an active x label on a normal display...
Replies
0
Views
592
I have followed the procedure below to convert RSView32 project to FactoryTalk View...
Replies
5
Views
1,423
Back
Top Bottom