[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

String lenght using APIs

Would someone please give me the correct VB code for determining the twips length of a given string using API calls?
0
NickHeitz3
Asked:
NickHeitz3
  • 3
  • 2
1 Solution
 
amebaCommented:
' paste this code to your form
Private Sub Form_Click()
   Dim s as string
   s = "A string"
   msgbox textwidth(s) & " twips"
End Sub
0
 
NickHeitz3Author Commented:
I can't believe how simple that was...
0
 
amebaCommented:
Thanks for 'B'
0
 
NickHeitz3Author Commented:
I apologize...
0
 
amebaCommented:
Thanks :)
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now