BCX_GET_TEXT$ function
Purpose: BCX_GET_TEXT$ will get text from the edit or static text field of a control.
Syntax: RetStr$ = BCX_GET_TEXT$(hWnd) Parameters:
Return Value:
|
Example:
GUI"BCX_Password"CONSTText_ID=100CONSTButt_ID=101GLOBALForm1ASHWNDGLOBALInput1ASHWNDGLOBALButt1ASHWNDSUBFORMLOAD Form1=BCX_FORM(" Password ",0,0,90,40)Input1=BCX_INPUT("BCX IS GREAT!", Form1, Text_ID,20,6,50,12)Butt1=BCX_BUTTON(" View Password", Form1, Butt_ID,20,20)SendMessage(Input1, EM_SETPASSWORDCHAR,42,0)' 42 = ASCII code for "*"SetFocus(Input1)CENTER(Form1)SHOW(Form1)ENDSUBBEGINEVENTSLOCALT$IFCBCTL=Butt_IDTHENT$=BCX_GET_TEXT$(Input1)MSGBOXT$ENDIFENDEVENTS
For other examples of the BCX_GET_TEXT$
function see BCX\Gui_Demo\Amort\Amort.bas and
BCX\Gui_Demo\Calc\Calc.bas.