briveland Posted September 23, 2005 Report Share Posted September 23, 2005 I wish to delete text from a text variable that is dependent on the text not the numeric position. For example I wish to delete all text prior to the word " Orders". Having trouble figuring out how to do this with variable controls. thx Quote Link to comment Share on other sites More sharing options...
Adam Posted September 26, 2005 Report Share Posted September 26, 2005 A useful trick, and one that was definitely worth sitting down and figuring out. Variable Set String %T1% "blah blah blah blah Orders halb halb halb halb" Variable Set Integer %N1% from Position of Text in Variable %T1% Variable Modify Integer: %N1% = %N1% - 1 Variable Modify String: Delete Part of %T1% <TVAR2:01:01:blah blah blah blah Orders halb halb halb halb><IVAR2:01:13:1:Orders><NMVAR:02:01:1:0000001:2:0000001><TMVAR2:11:01:00:001:N01:> Quote Link to comment Share on other sites More sharing options...
briveland Posted September 26, 2005 Author Report Share Posted September 26, 2005 Thanks, that looks like it will do the trick. Will give it a try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.