Print Page | Close Window

Get text? (Solved)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13322
Printed Date: 17 June 2025 at 11:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Get text? (Solved)
Posted By: rplp4
Subject: Get text? (Solved)
Date Posted: 02 February 2009 at 8:50pm
   
How can I get the text entered into ID_EDIT_TEXT?   I would lik to know how to get the text when a command bar button is clicked and how to get the text when a button on a form is clicked. 
 

Dim EditBar As CommandBar
    Set EditBar = CommandBars.Add("Edit", xtpBarTop)
    With EditBar.Controls
        .Add xtpControlEdit, ID_EDIT_TEXT, "Enter distance"
        Set control = .Add(xtpControlButton, ID_EDIT_OK, "OK")
    End With


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.0
Platform: Vista (64bit) - SP 2
Language: Visual Basic 6.0



Replies:
Posted By: Mr.Den
Date Posted: 03 February 2009 at 11:09am
Try:
 
CommandBars.FindControl(, ID_EDIT_TEXT).Text
 
To get the value
 


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1

Platform: Windows 7 Professional (64bit) - SP 1

Language: Visual Basic 6.0 SP 6


Posted By: rplp4
Date Posted: 03 February 2009 at 11:18am
Thank You,
It works.


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.0
Platform: Vista (64bit) - SP 2
Language: Visual Basic 6.0



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net