Home > Archive > Programming with dBASE > July 2005 > type() problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author type() problems
Trevor

2005-07-11, 3:23 am

Hi all

Does anyone know of any issues with TYPE()

I had a situation today where if I typed the following into the command
pane:

nType=0
? type("nType")

I get N as expected

but if I put the exact same commands into a prg or wfm I would get

U as the output.

I quit and re-started dBase but the problem persisted, eventually it
came good and now works again in all areas !!!

Regards
Trevor

Garry Christensen

2005-07-11, 3:23 am

G'day Trevor,
From the OLH: TYPE( ) cannot "see" variables declared as local or static.

Check the scope of the variable, make sure it's, public or private, or a
property of an object like 'form.nType'.
See Ya,
Garry

"Trevor" < trannnospam@mpxnospa
m.com.noauspam> wrote in message
news:MPG. 1d3cb3c1da1417a98968
4@news.dbase.com...
> Hi all
>
> Does anyone know of any issues with TYPE()
>
> I had a situation today where if I typed the following into the command
> pane:
>
> nType=0
> ? type("nType")
>
> I get N as expected
>
> but if I put the exact same commands into a prg or wfm I would get
>
> U as the output.
>
> I quit and re-started dBase but the problem persisted, eventually it
> came good and now works again in all areas !!!
>
> Regards
> Trevor
>



Trevor Rann

2005-07-11, 3:23 am

Thanks Garry, I was specifying local.

Regards
Trevor
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com