#57546 - 07/02/20 10:51 AM
Re: Function to break when finding a certain point.
[Re: Demerval]
|
OL Newbie
Registered: 05/18/12
Posts: 22
Loc: Brasil,Curitiba
|
define (&str, string, '') &str: =@ (43,1,500) pesquisa (& str, '[Break]') mostrar (& str) crlf () endsearch () mostrar (& str)
|
Top
|
|
|
|
#57547 - 07/02/20 10:58 AM
Re: Function to break when finding a certain point.
[Re: Demerval]
|
OL Expert
Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
|
I don't know if it happened while you copy and pasted your code or manually typed it but right away, you have defined a variable named &str but you refer to it as & str.
There is a space between you & symbol and the word str
_________________________
♪♫♪♫ 99 frigging bugs in my code 99 frigging bugs Take one down Code around 127 frigging bugs in my code ♪♫♪♫
|
Top
|
|
|
|
#57548 - 07/02/20 11:06 AM
Re: Function to break when finding a certain point.
[Re: Demerval]
|
OL Expert
Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
|
Also, do you pasted your code through Google translate? Please don't, PressTalk is in English and cannot be translated. Just copy and paste it as is. Here is your code written correctly without extra spaces everywhere...compare it to your actual code and you should understand your error...DO NOT GOOGLE TRANSLATE IT!!!
define(&str, string, '')
&str := @(43,1,500)
search(&str, '[Break]')
show(&str)
crlf()
endsearch()
show(&str)
_________________________
♪♫♪♫ 99 frigging bugs in my code 99 frigging bugs Take one down Code around 127 frigging bugs in my code ♪♫♪♫
|
Top
|
|
|
|
#57549 - 07/02/20 11:13 AM
Re: Function to break when finding a certain point.
[Re: Demerval]
|
OL Newbie
Registered: 05/18/12
Posts: 22
Loc: Brasil,Curitiba
|
It worked, now just don't let it pass the defined space.
|
Top
|
|
|
|
#57552 - 07/02/20 07:10 PM
Re: Function to break when finding a certain point.
[Re: Jean-Cédric]
|
OL Newbie
Registered: 05/18/12
Posts: 22
Loc: Brasil,Curitiba
|
Good night friend, can you help me with another question, there are different images on the page, as the image name comes in the file, a certain image must appear. You can help me with that question.
|
Top
|
|
|
|
#57553 - 07/02/20 07:11 PM
Re: Function to break when finding a certain point.
[Re: Jean-Cédric]
|
OL Newbie
Registered: 05/18/12
Posts: 22
Loc: Brasil,Curitiba
|
With regard to this issue, I am very grateful. Only thing I'm hitting on to set a fixed size, to have line breaks.
|
Top
|
|
|
|
#57554 - 07/03/20 08:49 AM
Re: Function to break when finding a certain point.
[Re: Demerval]
|
OL Expert
Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
|
For the images question, please start a new post.
For the fixed size issue with your line breaks, can you be more explicit about what exactly is the problem and what you are expecting as a result?
_________________________
♪♫♪♫ 99 frigging bugs in my code 99 frigging bugs Take one down Code around 127 frigging bugs in my code ♪♫♪♫
|
Top
|
|
|
|
|
|