I am trying to use the My object in a program. When I run it on my
computer, it works fine, but when I run it on another computer, it
fails. Here is the code:
My = newobject('My', 'my.vcx')
Any line after that that references My.xxx states that "My is not an
object." I have the my.vcx file embedded in the EXE so I'm a little
confused.
What am I doing wrong? Does this require that the my.vcx is present
on each computer?
Kevin Clark
Seton Home Study School
Dan Freeman - 28 Jul 2008 18:39 GMT
Use the 3rd parameter of NewObject():
My = newobject('My', 'my.vcx', 'the.exe')
Dan
> I am trying to use the My object in a program. When I run it on my
> computer, it works fine, but when I run it on another computer, it
[quoted text clipped - 11 lines]
> Kevin Clark
> Seton Home Study School
Sergey Berezniker - 28 Jul 2008 22:07 GMT
Hi Kevin,
You have to include my.dbf in the project/EXE as well

Signature
--sb--
VFP MVP
> I am trying to use the My object in a program. When I run it on my
> computer, it works fine, but when I run it on another computer, it
[quoted text clipped - 11 lines]
> Kevin Clark
> Seton Home Study School
Dan Freeman - 28 Jul 2008 22:33 GMT
Thanks, Sergey!
I always forget about that "My" boondoggle. (Blocking it, I think.)
Dan
> Hi Kevin,
>
[quoted text clipped - 15 lines]
>> Kevin Clark
>> Seton Home Study School