>Dear Experts
>
>I am using these codes
>
>
>
>select stock
>
>local oxtab
>oxtab = newobject("FastXtab", "fastxtab.prg")
>
>oxtab.coutfile = 'results'
>*oXtab.lCursorOnly = .T.
>
>oxtab.crowfield = 'usno'
>oxtab.ccolfield = 'cate'
>oxtab.cdatafield = 'nos'
>oxtab.nfunctiontype = 2
>oxtab.ccondition = "nos > 0"
>
>*oXtab.lDisplayNulls = .T.
>*oXtab.lBrowseAfter = .T.
>
>oxtab.lclosetable = .f.
>
>oxtab.runxtab()
>
>axb=ALIAS()
>SELECT (AXB)
>BROW
>
>
>
>The codes work fine outside EXE and displays correct result shown in attachment
>
>But
>
>When I run above code in EXE then codes do not work, this command does not show any data
>
>
>
>SELECT (AXB)
>BROW
>
>
Have you checked what AXB contains right before that code?
Aside from that, since you're specifying a cursor name, why copy the alias instead of just using the name you specified?
Tamar