Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Resolved] Changing values


Smasher Yoshi
 Share

Recommended Posts

Sorry, I'm really new to vb6 and I can't do much…

But if I want to change the Max HP, what I should change here?```

Private Sub scrlAddHp_Change()

' If debug mode, handle error then exit out

If Options.Debug = 1 Then On Error GoTo errorhandler

lblAddHP.Caption = "Add HP: " & scrlAddHp.Value

Item(EditorIndex).AddHP = scrlAddHp.Value

' Error handler

Exit Sub

errorhandler:

HandleError "scrlAddHP_Change", "frmEditor_Item", Err.Number, Err.Description, Err.Source, Err.HelpContext

Err.Clear

Exit Sub

End Sub

```
That's what I see when I click the scroll bar.
Link to comment
Share on other sites

Heres a ss in case its a bit confusing.

a long can only store up to 2147483647 so be sure to not exceed that number ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

![](http://i.imgur.com/oP9Mk.png)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...