what _SHOULD_ happen: HEXASC(CommonVariable$) under C32


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Bob A on October 24, 2012 at 07:58:22:

tried to dump a return variable RETURN$ (length of 1) in COMMON at program entry (don't ask)

the idea was to run it two ways... from the initial menu, and from a sub-menu since this difference seemed to be contributing to a problem. Figured that something is either being passed/not passed. and it would be different. I'm actually admitting to grasping at straws because there seems to be some problem when the program is run directly from the first screen.

so I converted RETURN$ using HEXASC in case it was "@00@"... but .... when I used MSGBOX to display the results of the HEXASC, I got Blanks where I figured that I should be seeing 2 ASCII characters representing whatever is in RETURN$

hunh?

then I copied the COMMON variable to a LOCAL variable... still nothing visible

all I could think was to PAD(LocalVariable) so that the length attribute would be "fixed" and I'd see something

now I get the following in the msgbox: RETURN$ = 20

I'm thinking that maybe the length was zero and/or the contents were "@00@" and when I PADded it, length was 1 and contents were "@20@" (as advertised)

for the record... the original impetus for this analysis was that in another program:
IF STRIP(CommonVariable$) EQ ""
didn't work the way I thought it should, and I remembered that STRIP strips off "@20@" but not "@00@"

I'll report back when I get further progress on the STRIP() EQ "" problem.

but first I need a reliable way to see exactly what's passed to the program, since I can't PCOMM(partition [,EXCP=statement-label]) anymore :(

Thanx

Bob "A"


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]