Jump to content

SpQueryDlgItemTextLength: Difference between revisions

From EDM2
Created page with "Queries the length of a text string in a dialog item. '''Syntax:''' len = spQueryDlgItemTextLength ( hwnd , id ) '''Parameters:''' hwnd – The parent window handle. (Hand..."
 
Ak120 (talk | contribs)
 
(2 intermediate revisions by 2 users not shown)
Line 15: Line 15:
  SAY LEFT('',spQueryDlgItemTextLength(hwnd,X2D('3C')),'-')
  SAY LEFT('',spQueryDlgItemTextLength(hwnd,X2D('3C')),'-')


[[Category:The OS/2 API Project]]
[[Category:SpUtils]]

Latest revision as of 00:03, 27 February 2017

Queries the length of a text string in a dialog item.

Syntax: len = spQueryDlgItemTextLength ( hwnd , id )

Parameters:

hwnd – The parent window handle. (Handle of the dialog owning the item to be queried.
id – Identity of the child window whose text length is to be queried.

Returns: Length of text.

Example Code: (part of spQueryDlgItemText example code)

/* findinf1.cmd (spUtils Example Code) */
[...]
SAY LEFT(,spQueryDlgItemTextLength(hwnd,X2D('3C')),'-')