1. RE: puzzle
George Walters wrote:
>
>
> 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
>
>
hi George
i don't know what tmp is holding at the time, but suspect it also has
double quotes or a string inside it.
rudy
lotterywars
2. 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
3. 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