-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Michael Senack
Sent: Tuesday, May 04, 2004 9:53 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Text string extraction

LAYER_SEQ[BA=1, LY=22, ME=0]

 

MOD_TEX[EL=SEQEL()-1, LV=0, XE=0, YE=5.47, TX="W:\\360\\VC11\\VC11-59.pm4 +Y", HT=0.25, AN=360]

 

Is there a way to extract ‘W:\\360\\VC11\\VC11-59’ from ‘W:\\360\\VC11\\VC11-59.pm4 +Y’

in the above modify text macro command and place it in a string?

 

Once in the string I’ll use it in the file save macro command.

 

Basically what I would like to accomplish is to remove the ‘.pm4 +Y’ from the text element.

 

Regards,

Michael Senack

 

 

 

1) strlen to find out length of string.

2) substring to remove the + Y

3) strip_ext to remove thr .pm4

 

Used the three commands in the past just don't have the macro at my current job.

Have to play with the numbers to get the strings right. After you make and run the

macro you can look at the macro variables to see what string length needs adjusted.

 

Mike

Reply via email to