Author Topic: Error When Using Dialogue Box (dcl)  (Read 1141 times)

0 Members and 1 Guest are viewing this topic.

Vince

  • Newt
  • Posts: 55
Error When Using Dialogue Box (dcl)
« on: January 02, 2013, 03:27:49 PM »
Hi Swamp Members,

I have a lisp routine that uses a simple dialogue box with one edit box for users to input a 4 or 5 character project number ex:  1234,   5688,   P9328,  P9585,  etc..........and this is a line from the DCL file that defines the edit box      : edit_box { label = "Enter Project Number :"; key = "PN"; edit_limit = 6; edit_width = 8;}

The lisp code that reads the edit box uses this line    (action_tile "PN" "(setq Rnam $value)")    then I use the Rnam variable in some other lines of code to attach an Xref file.

The problem I am now experiencing began because the company is changing the project numbering system as follows    13001.00,  13001.01,  13002.00,   P13001.00,  P13002.00,   etc.  and when I try to use the above code I get an error because the   (action_tile "PN" "(setq Rnam $value)")  line of code is having a problem with new numbering system  13001.00 more specifically handling the .00 or .01 etc. portion of the project number.

Is there a easy way to resolve this difficulty....??    Your assistance would be appreciated....!!



Regards,
Vince


laidbacklarry

  • Guest
Re: Error When Using Dialogue Box (dcl)
« Reply #1 on: January 02, 2013, 04:34:30 PM »
Change the edit-limit to 9 or the maximum number of characters that can be used...