Delete Recipe in FT View SE v8.0

sachincool786

Member
Join Date
Dec 2014
Location
india
Posts
48
Dear All!!!

Please tell me the way how can i delete recipe from Runtime.

There are only save and restore options in the inbuild recipe function.

I am using inbuild recipe function.

Factory Talk View SE v8.0 (all the patches till date are installed)
 
Dear Sir!!!

I read this post!!!
used this code but not working.

What i did is:

I made a button named "cmdDeleteRcp" as per the code saying and made to it VBA exposed.

Now I am not able to make Listbox with the name of "LstRecipeNames"

I tried picking activeX ListboxDTE but it is giving me an error something like "can't make object"

and one thing more i am getting error o the step

gActivity.Log Err.Description
 
Dear!!!

used this code already but not able to make it working.

What i did is:

I made a button named "cmdDeleteRcp" as per the code saying and made to it VBA exposed.

Now I made a Listbox from Microsoft form 2.0 activeX control with the name of "LstRecipeNames" as per the code saying and made to it VBA exposed.

Now when i run the runtime, i could not see any recipe in listbox

and one thing more i am getting error on the step

gActivity.Log Err.Description

but i bypassed ut by make it comment





Private Sub Display_AnimationStart()

Dim sRecipes As StringList
Dim vRecipe As Variant
On Error GoTo ErrHandler
Set sRecipes = gProject.GetComponents("Recipes;files")
For Each vRecipe In sRecipes
LstRecipeNames.AddItem vRecipe
Next vRecipe

ErrHandler:
If Err.Number Then
'gActivity.Log Err.Description
Err.Clear
End If
Set sRecipes = Nothing
Set vEachRecipe = Nothing
'Set vRecipe = Nothing
End Sub

'user selects the recipe name in the list box, and then presses delete button
Private Sub cmdDeleteRcp_Press()
On Error GoTo ErrHandler
If LstRecipeNames.ListIndex = -1 Then
MsgBox "Select a recipe to delete"
Else
'delete the recipe file, and remove from the project
gProject.DeleteComponent "Recipes;files", LstRecipeNames.Text
'remove the item from the listbox
LstRecipeNames.RemoveItem LstRecipeNames.ListIndex
End If
ErrHandler:
If Err.Number Then
'gActivity.Log Err.Description
Err.Clear
End If
End Sub





THis above code i am using.

Please tell me what is wrong in it???

The listbox is not picking list of recipes from Recipe function
 

Similar Topics

Hi All Using RSview se 3.2 is it posible to delete recipe file using command button vba?? Thanx
Replies
4
Views
9,305
Hello, someone have experience about how to delete an alarm message(alarm already solved) from alarm viewer with something coming from PLC? THANKS
Replies
3
Views
829
Hello, someone have experience about how to delete an alarm message(alarm already solved) from alarm viewer with something coming from PLC? THANKS
Replies
0
Views
373
In my project, I've set up a few user accounts (Operator, Technician, Admin). The person assigned as Admin has said "I want to be able to...
Replies
8
Views
1,120
In the Communications > Network > Protocol 1 - AB Tag Names > PLC10 configuration page there is a Tag Names section (not the same as the separate...
Replies
4
Views
2,478
Back
Top Bottom