Jump to content
Macro Express Forums

trim question


koden

Recommended Posts

Okay..thats why. Thanks..

 

maybe I should ask different.

 

I have copyed this to clipboard:

 

----------------------------------------------------------------------

 

dghdsghdhjdhjd dsjhdhjdjhdhjdjh

sjhdshjdhjdhjdhjdjk Objects XXX sdhjsdfjkdskjfhjd

ashdgash sadjkashdjksdkajsld

-----------------------------------------------------------------------

 

What I need is to FIND and get XXX into a variabel. XXX is a number from 1-999.

Objects is a word that always exist in the copy text.

 

How to do that??

Link to comment
Share on other sites

I use the Set Integer to position of text in variable. Then add an offset to that number and the use the Copy Part of Text. So in your example I would get the position of “Objects” in the var, N1, then add 8 to get to the first X. Then Copy part of text T1 to T2 from position N1 and take 3 characters.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...