Re: matchChunk works?

2010-11-19 Thread David Bovill
Your destination is misquoted?

"(tDestino)" is not "(" & tDestino & ")"
>

On 19 November 2010 13:35, JosepM  wrote:

>
> Hi,
>
> Not for me, well, the sample code work but this not. Why?
>
> LOCAL startMatch, endMatch
> on mouseUp
>   PUT fld "f_friends" into VAR1
>  put fld "f_look_for_friends" into tDestino
>   PUT EMPTY INTO startMatch
>  PUT EMPTY INTO endMatch
>   PUT matchChunk(VAR1,"(tDestino)",startMatch, endMatch) INTO VAR2
>   put VAR2 && startMatch && endMatch
> end mouseUp
>
> Ever I get startMatch and endMatch to empty...
>
> Salut,
> Josep
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: matchChunk works?

2010-11-19 Thread JosepM

Hi,

Not for me, well, the sample code work but this not. Why?

LOCAL startMatch, endMatch 
on mouseUp 
      PUT fld "f_friends" into VAR1 
  put fld "f_look_for_friends" into tDestino
      PUT EMPTY INTO startMatch 
      PUT EMPTY INTO endMatch 
      PUT matchChunk(VAR1,"(tDestino)",startMatch, endMatch) INTO VAR2 
      put VAR2 && startMatch && endMatch 
end mouseUp 

Ever I get startMatch and endMatch to empty...

Salut,
Josep
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/matchChunk-works-tp620097p3050334.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: matchChunk works?

2009-11-16 Thread paolo mazza

Thanks a lot. 


-- 
View this message in context: 
http://n4.nabble.com/matchChunk-works-tp620097p622046.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: matchChunk works?

2009-11-12 Thread BNig

Paolo,

this will work.

PUT matchChunk(VAR1,"(ZX)",startMatch,endMatch) INTO VAR2

>From the documentation:
Comments:
If the regularExpression includes a pair of parentheses, the position of the
substring matching the part of the regular expression inside the parentheses
is placed in the variables in the positionVarsList and so on.

So it is the parenthesis.

regards
Bernd
-- 
View this message in context: 
http://n4.nabble.com/matchChunk-works-tp620097p620207.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


matchChunk works?

2009-11-12 Thread mazzapa...@libero.it
On Rev 4.0.0 I tryed matchChunk but even if VAR2 is true the variables 
startMatch and endMatch are empty. Why?

See this script:

LOCAL startMatch,
endMatch
on mouseUp
   PUT "tutuytuZXytuyt" into VAR1
   PUT EMPTY INTO 
startMatch
   PUT EMPTY INTO endMatch
   PUT matchChunk(VAR1,"ZX",startMatch,
endMatch) INTO VAR2
   put VAR2 && startMatch && endMatch
end mouseUp

Best 
regards,

Paolo Mazza


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution