Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Get text? (Solved)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get text? (Solved)

 Post Reply Post Reply
Author
Message
rplp4 View Drop Down
Groupie
Groupie


Joined: 18 May 2008
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote rplp4 Quote  Post ReplyReply Direct Link To This Post Topic: Get text? (Solved)
    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
Back to Top
Mr.Den View Drop Down
Groupie
Groupie
Avatar

Joined: 26 August 2007
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mr.Den Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rplp4 View Drop Down
Groupie
Groupie


Joined: 18 May 2008
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote rplp4 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.