Where To Create Global Function
Hello,
Where can create this function so that it can be re-useable by other object?
Function Celsius(fDegrees)
Celsius = (fDegrees - 32) * 5 / 9
End Function
Where can create this function so that it can be re-useable by other object?
Function Celsius(fDegrees)
Celsius = (fDegrees - 32) * 5 / 9
End Function
0
-
Legacy Poster
★ BarTender Hero ★
[quote name='tj combos' timestamp='1315335481' post='525']
Hello,
Where can create this function so that it can be re-useable by other object?
Function Celsius(fDegrees)
Celsius = (fDegrees - 32) * 5 / 9
End Function
[/quote]
I've figured it out, put in Event List Functions and Subs ............DUH!0 -
Legacy Poster
★ BarTender Hero ★
[quote name='tj combos' timestamp='1315336471' post='527']
I've figured it out, put in Event List Functions and Subs ............DUH!
[/quote]
I could not find where do you mean that it has to be put.
Can you please specify it a little more?
Many thanks0 -
Gene Henson
★ BarTender Hero ★
Try these steps:
[list=1]
[*]Right click on an object on your label
[*]Click on Properties
[*]Change the Data Source to Visual Basic Script
[*]Change the Type to Event Control Scripts
[*]Click the Edit Button
[*]When the editor opens the top most option in the event list will be Functions and Subs
[/list]
You can create subroutines in that area and then reuse them on other events/objects.0 -
Legacy Poster
★ BarTender Hero ★
Hello,
I just did this but I can't figure out the correct syntax to call such a function from within the vbscript of another data field. Could you please give an example ?
Thanks a lot
:-) Bernhard0 -
Legacy Poster
★ BarTender Hero ★
"You can create subroutines in that area and then reuse them on other events/objects. "
How? When I try and call a function from a different text object it doesn't recognise it.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
5 commentaires