1. puzzle
I'm getting this message and can't figure it out.
sequence found inside character string
r = {97'a',114'r',67'C',97'a',115's',104'h',77'M',116't',100'd'}
o = {1,30200,{34'"',49'1',57'9',57'9',56'8',45'-',48'0',56'8',45'-',
49'1',49'1',34'"'},1001,1233,228,42.33,{34'"',49'1',57'9',57'9',56'8',
45'-',48'0',56'8',45'-',49'1',53'5',34'"'},0.43,500,4,0,{65'A',67'C',
67'C',85'U',84'T',69'E',67'C',72'H',32' ',77'M',65'A',67'C',72'H',73'I',
78'N',69'E'},31100}
Here's the code producing it and I want a character string (which I thought
was a sequence)
r = sprintf( "\"%04d-%02d-%02d\"",tmp[2])
I've also tried it w/o the \"
george
2. Re: puzzle
what does tmp hold?
> I'm getting this message and can't figure it out.
> sequence found inside character string
> r = {97'a',114'r',67'C',97'a',115's',104'h',77'M',116't',100'd'}
> o = {1,30200,{34'"',49'1',57'9',57'9',56'8',45'-',48'0',56'8',45'-',
> 49'1',49'1',34'"'},1001,1233,228,42.33,{34'"',49'1',57'9',57'9',56'8',
> 45'-',48'0',56'8',45'-',49'1',53'5',34'"'},0.43,500,4,0,{65'A',67'C',
> 67'C',85'U',84'T',69'E',67'C',72'H',32' ',77'M',65'A',67'C',72'H',73'I',
> 78'N',69'E'},31100}
>
> r = sprintf( "\"%04d-%02d-%02d\"",tmp[2])
3. Re: puzzle
----- Original Message -----
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Subject: puzzle
>
>
> I'm getting this message and can't figure it out.
>
> sequence found inside character string
> r = {97'a',114'r',67'C',97'a',115's',104'h',77'M',116't',100'd'}
> o = {1,30200,{34'"',49'1',57'9',57'9',56'8',45'-',48'0',56'8',45'-',
> 49'1',49'1',34'"'},1001,1233,228,42.33,{34'"',49'1',57'9',57'9',56'8',
> 45'-',48'0',56'8',45'-',49'1',53'5',34'"'},0.43,500,4,0,{65'A',67'C',
> 67'C',85'U',84'T',69'E',67'C',72'H',32' ',77'M',65'A',67'C',72'H',73'I',
> 78'N',69'E'},31100}
>
> Here's the code producing it and I want a character string (which I thought
> was a sequence)
>
> r = sprintf( "\"%04d-%02d-%02d\"",tmp[2])
>
> I've also tried it w/o the \"
tmp[2] must be a sequence that contains another sequence.
--
Derek
4. puzzle
- Posted by gwalters at sc.rr.com
Mar 15, 2002
Here's some code. The windows show up but there is no text nor buttons
showing up. Do you see the problem?
for i = 1 to len(EUmenu) do
id =
create(Window,EUmenu[i][1],Main,223,50,sw-215,clientSize[4]-62,{WS_DLGFRAME,
WS_CAPTION ,WS_POPUP})
subMenuId = append(subMenuId,id)
setPosition(id, 50,50)
wPuts(id,"text")
if len(EUmenu[i])> 2 then
col = 5
row = 50
lenRow = 100
for j = 2 to len(EUmenu[i]) do
id = create(Button,EUmenu[i][j][1],subMenuId[i],
col,row,lenRow,20,{BS_TEXT,BS_LEFT})--,#8000})
row += 20
end for
end if
--tmp = gets(0)
end for
george
5. puzzle
I have a program which prints customer statments. It runs flawlessley when
run from the Crimson Editor. When It runs from the Menu program I wrote it
does not run correctly. However, if I run the Menu program from the Crimson
Editor and run the statement program from the menu it works flawlessley!!!!
Anyone have any Ideas?
george
6. Re: puzzle
Irv,
The program runs and produces a txt file (it does this correctly in both
cases). When it's running it should execute a "message_box" twice and
display a message of "customer not on file". The trace shows that it gets to
the message_box statement, but no message box appears when run from the menu
but does when from Crimson Editor. At the end of the program it "system"
commands to run a program which will display the txt file. This system
command gets an error code of -1 when run from the menu but gets a 0 when
from the editor.
Here's the code that should display a message box.
if EOF[arCustomer] then
--trace(1)
tmp = message_box("Customer "& str(customer) & " has open items but
is not on file.",
"",0)
nextCustomerNbr = customer + 1
return
else
george
----- Original Message -----
From: "I Mullins" <eugtk at yahoo.com>
To: <EUforum at topica.com>
Sent: Friday, March 12, 2004 7:52 AM
Subject: RE: puzzle
>
>
> George Walters wrote:
> >
> >
> > I have a program which prints customer statments. It runs flawlessley
> > when
> > run from the Crimson Editor. When It runs from the Menu program I wrote
> > it
> > does not run correctly. However, if I run the Menu program from the
> > Crimson
> > Editor and run the statement program from the menu it works
> > flawlessley!!!!
> >
> > Anyone have any Ideas?
> >
>
> "does not run correctly" is a bit vague.
> Do you mean it prints, but prints the wrong numbers?
> Or runs but doesn't print?
> Or doesn't seem to run at all?
>
> Without more info, I can only guess that there's a problem with the
> paths - some needed file can't be found.
>
> Irv
>
>
>
> For Topica's complete suite of email marketing solutions visit:
> http://www.topica.com/?p=TEXFOOTER
>
>
7. Re: puzzle
Hi George,
I think that has to do with the directory that's passed as current directory
(where the program should read the data) when launched. Try using a full path to
the file and see if you still have problems. IE: read from
c:\yourdirectory\yourfile.txt instead of yourfile.txt
Best Regards,
Guillermo Bonvehi
On Fri, 12 Mar 2004 07:36:31 -0500
George Walters <gwalters at sc.rr.com> wrote:
>
>
> I have a program which prints customer statments. It runs flawlessley when
> run from the Crimson Editor. When It runs from the Menu program I wrote it
> does not run correctly. However, if I run the Menu program from the Crimson
> Editor and run the statement program from the menu it works flawlessley!!!!
>
> Anyone have any Ideas?
>
> george
8. Re: puzzle
Well, It's fixed itself. I went back to check the value of tmp as Irv
suggested and removed the remark on the trace and it started working. I then
removed the trace and it continued to work. I'm guessing XP might have been
confused....I sure was. Thanks for the suggestions.
george
----- Original Message -----
From: "I Mullins" <eugtk at yahoo.com>
To: <EUforum at topica.com>
Sent: Friday, March 12, 2004 12:30 PM
Subject: RE: puzzle
>
>
> George Walters wrote:
> >
> >
> > Irv,
> > The program runs and produces a txt file (it does this correctly in both
> > cases). When it's running it should execute a "message_box" twice and
> > display a message of "customer not on file". The trace shows that it
> > gets to
> > the message_box statement, but no message box appears when run from the
> > menu
> > but does when from Crimson Editor. At the end of the program it "system"
> > commands to run a program which will display the txt file. This system
> > command gets an error code of -1 when run from the menu but gets a 0
> > when
> > from the editor.
> >
> > Here's the code that should display a message box.
> >
> > if EOF[arCustomer] then
> > --trace(1)
> > tmp = message_box("Customer "& str(customer) & " has open items
but
> > is not on file.",
> > "",0)
> > nextCustomerNbr = customer + 1
> > return
> > else
> >
>
> It might be interesting to examine the value of tmp after this call -
> according to the docs, " ... A return value of 0 indicates a failure to
> set up the window. "
>
> I don't know *why* there could be such a failure, but this would be
> the first step in finding out.
>
> Regards,
> Irv
>
>
>
> For Topica's complete suite of email marketing solutions visit:
> http://www.topica.com/?p=TEXFOOTER
>
>