?
Solved

String lenght using APIs

Posted on 1999-07-28
5
Medium Priority
?
145 Views
Last Modified: 2010-04-30
Would someone please give me the correct VB code for determining the twips length of a given string using API calls?
0
Comment
Question by:NickHeitz3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
ameba earned 300 total points
ID: 1528011
' paste this code to your form
Private Sub Form_Click()
   Dim s as string
   s = "A string"
   msgbox textwidth(s) & " twips"
End Sub
0
 

Author Comment

by:NickHeitz3
ID: 1528012
I can't believe how simple that was...
0
 
LVL 15

Expert Comment

by:ameba
ID: 1528013
Thanks for 'B'
0
 

Author Comment

by:NickHeitz3
ID: 1528014
I apologize...
0
 
LVL 15

Expert Comment

by:ameba
ID: 1528015
Thanks :)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question