Oct 10, 2016 11:01 PM
(This post was last modified: Oct 11, 2016 01:04 AM by SIM-964740.)
So essentially I want to call a class to run my code but with a custom variable passed in.
a being a defined listbox and b being an item to add into the defined listbox.
Any suggestions?
EDIT: Just remembered about Methods - I assume this is what I am looking for.
This is what I am testing right now.
PHP Code
<?php
public class AddItem(a, b)
{
a.Items.Add(b);
}
a being a defined listbox and b being an item to add into the defined listbox.
Any suggestions?
EDIT: Just remembered about Methods - I assume this is what I am looking for.
This is what I am testing right now.
PHP Code
<?php
public void addItems(ListBox lb, string input)
{
lb.Items.Add(input);
}


