Topic: UnExpected Error By Newbie
Greetings,
I am a newbie so this may totally be on me or have I found something?
I have been playing with Date & Time Examples and wanted to make a more specific demo to hold on to while I start my project. I have been working off Form1 from an EditBox, simply using the OnClick Event to launch the code and everything was displayed via ShowMessage displays as to the results.
In the process I decided to move my code to a Button from the EditBox as no input is actually need, just a way to trigger the code. However I get an error "List index out of bounds (1)" when I run the exact same code that functions properly when deployed from the EditBox.
In my case is there really anything different about running the code between the EditBox and the Button? I don't think so, but do not understand either.
See all info in project attached... I would like to understand why one work and the other doesn't.
Regards,
Keith