Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PML (for PDMS) methods are not being recognized...

Posted on 2001-08-29
4
Medium Priority
?
2,293 Views
Last Modified: 2012-05-07
I'm pretty new to PML so I have a learning curve ahead of me.  

I am building a simple form that has a list and a view, along with two buttons.  The list is populated from a directore, the view is populated from a folder of plotfiles, based on which item in the list is selected.  The problem is, the methods are not being recognized.  

I am able to load the form, but when I try to show it, the init() method is not found.  Any ideas?

thanks,
sekans
0
Comment
Question by:Sekans
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 6437528
Is the init() method public?

Regards,
CJ
0
 
LVL 1

Author Comment

by:Sekans
ID: 6437599
I don't know, how can I find out.  I'll post the form definition below.

setup form !!miscequi
   !!miscequi.formtitle = 'Build Misc Equipment'
   !!miscequi.initcall  = '!this.Init()'
   
   list     .equip 'Select Equipment' call '!this.LoadPlotfile()' width 20 length 15
   view     .plot plot hei 9 aspect 0.8 bord on

   button .build   'Create' at x0 ymax+1 call '!bekmiscequi.Build()'
   button .dismiss 'Dismiss' at x0 ymax+1 CANCEL
exit

define method .Init()
   !dir       = object FILE('\\pdmsws1\pdms\bek11.2ui\MiscEquipment')
   !FileList  = object ARRAY()
   !Descript  = object ARRAY()
   !FileNames = object ARRAY()
   !TmpFile   = object FILE()
   !count     = object REAL()
   
   !s = object STRING()

   !this.equip.Clear()

   !FileList = !dir.Files()
   !count = arraysize(!FileList)
   do !i from 1 to $!count
      !FileNames.Append(!FileList[$!i].Fullname())
      !s = !FileList[$!i].Entry()
      !s = !s.Before('.')
      !Descript.Append(!s)
   enddo
     
   !this.equip.dtext = !Descript
   !this.equip.rtext = !FileNames
endmethod

define method .LoadPlotFile()
   !s = object STRING()

   !this.plot.Clear()

   !dir       = object FILE('\\PDMSWS1\pdms\bek11.2ui\MiscEquipment\PlotFiles')
   !ext       = '.plt'
   
   !s = !this.equip.selection('DTEXT')

   !this.plot.add('$!dir\$!s$!ext')
   handle any
      !this.plot.add('$!dir\empty$!ext')
      $p No plot file for $!s
   endhandle
endmethod

define method .Build()
   $p Building...
   !s = object STRING()

   !s = !this.equip.selection()
   $m/$!s
$P $!s
endmethod



0
 
LVL 54

Expert Comment

by:nico5038
ID: 7489574

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 7528135
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Six Sigma Control Plans

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question