Hello again, another slight program with the code below its just not running as intended. The custom spinner control is working however i would like in the text box the word "Day" to remain in there and when i press the plus button the text Day stays the same but the numeral next to it in the same textbox go up. Eg; Day 1, Day 2 , Day 3, Day 4 etc.... Does anyone know were i am going wrong?
Have a look at comments here. [plus] 'so you want it have "Day 1" etc, with number increasing 'then !contents? will be a string. 'val("Day 1") is 0 (it is not a number) - you have to get number first 'so first get it as string #1.1, "!contents? val3$" 'if it empty then just start from Day 1 if trim$(val3$) = "" then val3=0 'then we add 1, it'll became day 1 else 'number supposed to be second word val3=val(word$(val3$,2)) end if 'now increase day val3=val3+1 'and print it to textbox, with Day and space (so WORD$ will work) print #1.1, "Day ";val3 wait