jeudi 23 août 2018

Visual C++ CheckBox and NumericUpDown Save Input to Variable

I am trying to get all my inputs into variables. The commented ones are the ones I need help with. I'm not sure what the output for CheckBoxes and NumericUpDowns are.

I've tried:

NumericUpDown ^ level = Level->Value;

Which gave me an error. What should I use after the -> to get the input for both the CheckBoxes and NumericUpDowns?

Here's all my variable code if you want to check my work so far.

String ^ charName = CharacterName->Text;
String ^ race = Race->Text;
String ^ cclass = Class->Text;
//NumericUpDown ^ level = Level->;
String ^ background = Background->Text;
String ^ alignment = Alignment->Text;
String ^ playerName = PlayerName->Text;
//NumericUpDown ^ xp = XP->;
//NumericUpDown ^ strength = Strength->;
//NumericUpDown ^ dexterity = Dexterity->;
//NumericUpDown ^ constitution = Constitution->;
//NumericUpDown ^ intelligence = Intelligence->;
//NumericUpDown ^ wisdom = Wisdom->;
//NumericUpDown ^ charisma = Charisma->;
//CheckBox ^ strengthSaveThrow = StrengthSaveThrow->;
//CheckBox ^ dexteritySaveThrow = DexteritySaveThrow->;
//CheckBox ^ constitutionSaveThrow = ConstitutionSaveThrow->;
//CheckBox ^ intelligenceSaveThrow = IntelligenceSaveThrow->;
//CheckBox ^ wisdomSaveThrow = WisdomSaveThrow->;
//CheckBox ^ charismaSaveThrow = CharismaSaveThrow->;
//NumericUpDown ^ armorClass = AC->
//NumericUpDown ^ speed = Speed->;
//NumericUpDown ^ maxHP = MaxHP->;
//NumericUpDown ^ hitDieNum = HitDieNum->;
String ^ hitDieType = HitDieType->Text;
//CheckBox ^ weapon1 = Weapon1->;
String ^ weapon1Name = Weapon1Name->Text;
String ^ weapon1AtkBonus = Weapon1AtkBonus->Text;
String ^ weapon1Damage = Weapon1Damage->Text;
//CheckBox ^ weapon2 = Weapon2->;
String ^ weapon2Name = Weapon2Name->Text;
String ^ weapon2AtkBonus = Weapon2AtkBonus->Text;
String ^ weapon2Damage = Weapon2Damage->Text;
//CheckBox ^ weapon3 = Weapon3->;
String ^ weapon3Name = Weapon3Name->Text;
String ^ weapon3AtkBonus = Weapon3AtkBonus->Text;
String ^ weapon3Damage = Weapon3Damage->Text;
String ^ weaponOther = WeaponOther->Text;
String ^ acrobatics = Acrobatics->Text;
String ^ animalHandling = AnimalHandling->Text;
String ^ arcana = Arcana->Text;
String ^ athletics = Athletics->Text;
String ^ deception = Deception->Text;
String ^ history = History->Text;
String ^ insight = Insight->Text;
String ^ intimidation = Intimidation->Text;
String ^ investigation = Investigation->Text;
String ^ medicine = Medicine->Text;
String ^ nature = Nature->Text;
String ^ perception = Perception->Text;
String ^ performance = Performance->Text;
String ^ persuasion = Persuasion->Text;
String ^ religion = Religion->Text;
String ^ soh = SleightOfHand->Text;
String ^ stealth = Stealth->Text;
String ^ survival = Survival->Text;
String ^ copper = Copper->Text;
String ^ silver = Silver->Text;
String ^ electrumm = ElectrumM->Text;
String ^ gold = Gold->Text;
String ^ platinum = Platinum->Text;
String ^ proficiencies = ProfLang->Text;
String ^ equipment = Equipment->Text;
String ^ features = FeatTrait->Text;
String ^ personality = Personality->Text;
String ^ ideals = Ideals->Text;
String ^ bonds = Bonds->Text;
String ^ flaws = Flaws->Text;




Aucun commentaire:

Enregistrer un commentaire