@filmmaker2,
Sounds like both officials acted correctly.
The first allowed you on the plane because you had a visa and gave you advance warning of what may or may not happen in Bangkok, so you could be prepared.
The second used your visa for entry (although she could have bent a little and allowed you in by visa exemption, saving you some hassle!).
This indicates that they are alert at both departure to and at arrival in Bangkok.
It does sound as if they would not have let you on the plane to start with if you did not already have the visa and also had no ticket for onward travel. That is the eternal question.
