Print Page | Close Window

Single line text or multi-line text?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1418
Printed Date: 03 Apr 26 at 3:13PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Single line text or multi-line text?
Posted By: waynefulcher
Subject: Single line text or multi-line text?
Date Posted: 20 Apr 10 at 7:25PM
Can someone tell me how I can tell the difference between a field that is a single line of text or a memo type field that may have many lines of text? I use the GetFormFieldType(FieldIndex) and I see a return value of 1 means it is a text field but I dont know if it is multi-line or not.
 
Thanks
Wayne



Replies:
Posted By: Ingo
Date Posted: 20 Apr 10 at 9:13PM
Hi Wayne!

You need this:
is_ml := QP.GetFormFieldTextFlags(fieldindex,1);
If "is_ml" has the value "1" then it's multiline (0 = Not).
Have a look in the reference.
if GetFormFieldTextFlags(fieldindex,2) for example returns with "1" this means password-format.

Cheers, Ingo





Posted By: waynefulcher
Date Posted: 21 Apr 10 at 2:26PM
Got it! Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk