The code inside your user control while loop is really the same for VCS and VexCode, which is the newest version of the V5 software.
Please, take a look at this example: