<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>18 Nov 2014 06:11:00 Z</lastBuildDate><pubDate>17 Nov 2014 09:21:00 Z</pubDate><description>Hi Everyone&#13;
&#13;
I want to move the creation of a view into a class.&#13;
&#13;
This next two lines of code needs to go somewhere in the class, but I just can't figure it out.&#13;
&#13;
MyView_EAINFO is Data Source&#13;
HCreateView(MyView_EAINFO, EAInfo_A, "EAINFO_ID", "", "", hViewDefault)&#13;
&#13;
This method below should "See" this View, but the compiler is complaining about inaccessibilty.&#13;
&#13;
PROCEDURE GLOBAL TestView(nEAINFO_ID)&#13;
IF HReadSeekFirst(MyView_EAINFO,EAINFO_ID,nEAINFO_ID) THEN&#13;
Info("Found")&#13;
END&#13;
&#13;
Placing the creation of the view in the method doesn't make sense as I don't want to create the view everytime this method is called.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp</link><title>[WD18] Creating a view in a class</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-49010/read.awp</comments><pubDate>18 Nov 2014 06:11:00 Z</pubDate><description>Hi Everyone&#13;
&#13;
Thank you all for your feedback.&#13;
&#13;
I think that with all the new pointers, I'm in a better position to solve the…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-49010/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-49010/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48995/read.awp</comments><pubDate>17 Nov 2014 14:35:00 Z</pubDate><description>Hi MvdW,&#13;
&#13;
Just few notes: (1) Data sources name are not behaving the same in classes as elsewhere, (2) Connections are broken …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48995/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48995/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48993/read.awp</comments><pubDate>17 Nov 2014 13:59:00 Z</pubDate><description>Hi,&#13;
&#13;
Use quotes :&#13;
&#13;
IF HReadSeekFirst(MyView_EAINFO,"EAInfo_A_ID",nEAINFO_ID) THEN&#13;
Info("Found")&#13;
END&#13;
&#13;
Regards,&#13;
Bart</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48993/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48993/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48992/read.awp</comments><pubDate>17 Nov 2014 13:46:00 Z</pubDate><description>I guess the compiler isn't smart enough to "see" what fields are in your view, because the view is build in code.&#13;
I would use a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48992/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48992/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48991/read.awp</comments><pubDate>17 Nov 2014 13:11:00 Z</pubDate><description>Hi Fabrice&#13;
&#13;
In my many attempts to solve this, I've put GLOBAL in the beginning of the process to resolve this issue. I've rem…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48991/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48991/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48989/read.awp</comments><pubDate>17 Nov 2014 12:56:00 Z</pubDate><description>Hi&#13;
&#13;
why do you declare the class method as global?&#13;
&#13;
Best regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48989/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48989/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48988/read.awp</comments><pubDate>17 Nov 2014 12:56:00 Z</pubDate><description>Hi Piet&#13;
&#13;
So close, but still so far.&#13;
&#13;
I still sit with the remaining error.&#13;
&#13;
"TestView"methhod say that "the identifier "E…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48988/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48988/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48987/read.awp</comments><pubDate>17 Nov 2014 12:39:00 Z</pubDate><description>Hi,&#13;
&#13;
You need to declare an instance of the class first in the button code and then use that instance to call the procedure:&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48987/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48987/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48986/read.awp</comments><pubDate>17 Nov 2014 12:18:00 Z</pubDate><description>Hi Piet&#13;
&#13;
Thank you for the information.&#13;
&#13;
I'm still not there. There are two errors left and I hope that you can assist.&#13;
&#13;
T…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48986/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48986/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48984/read.awp</comments><pubDate>17 Nov 2014 10:43:00 Z</pubDate><description>Hi,&#13;
&#13;
MyView_EAINFO is Data Source goes in the Class declaration. (between "is a class" and "end")&#13;
HCreateView can go in the C…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48984/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class-48984/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48982-wd18-creating-view-class/read.awp">[WD18] Creating a view in a class</source><title>Re: [WD18] Creating a view in a class</title></item></channel></rss>
