Writing a null string sets VBOTTOM=VTOP

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Writing a null string sets VBOTTOM=VTOP

Postby Bengt » Mon Feb 22, 2021 8:56 pm

Writing an empty string sets VBOTTOM=VTOP. Is that by purpose or is it an error? It made me confused until I found our why certain line feeds were missing.

Bengt


Send DoVpeWrite VRIGHT VTOP VFREE VFREE 'AAA'
Move ( DoVpeGet(Self,VTOP)) to iVtop //iVtop=407
Move ( DoVpeGet(Self,VBOTTOM)) to iVBot //iVtop=458

Send DoVpeWrite VRIGHT VTOP VFREE VFREE ''
Move ( DoVpeGet(Self,VTOP)) to iVtop //iVtop=407
Move ( DoVpeGet(Self,VBOTTOM)) to iVBot //iVtop=407
Bengt
 
Posts: 89
Joined: Fri Jan 27, 2006 5:29 pm

Re: Writing a null string sets VBOTTOM=VTOP

Postby IDEAL Software Support » Wed Feb 24, 2021 9:09 am

This is intended behaviour. When you output nothing, the width as well as the height of the output is zero.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests