Thanks again Vadim, I have validated your modification but found out that the biggest problem with this example is the trailing *.
This will create a false true if a variable is null for example:
call vL.FileExist ('$(NullVariable)*);
Will return true as the function will search for * in the current app location (relative path).
I've added a warning into development guide and will remove * in all examples.
Magnus, I believe this is interrelated problem.
For example you cannot simply remove * from that QVD-Generator-Example.qvw because
call vL.FileExist ('$(vL.QVDPath)')
would return false even in normal situation when 2.QVD folder actually exists. Because vG.QVDPath variable ends with '\'.
So it should be firstly function change and then change in all examples and docs.