Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4956

Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause

From "Willie Moore" <williem@wmconsulting.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause
Date 2013-03-22 13:26 -0500
Organization Aioe.org NNTP Server
Message-ID <kii7o9$lcc$1@speranza.aioe.org> (permalink)
References <c05de7d0-540c-4250-944c-0a0f07144f75@googlegroups.com> <8ccba769-ed95-4a2f-8270-0b36377e0e71@googlegroups.com>

Show all headers | View raw


Veselin,

Thanks for your sample. I have been able to replicate the issue and here is 
what you need to do. Change oDCIban:CurrentText := '12345678' to 
oDCIban:Value := '12345678' and it will work. CurrentText only sets the 
buffer in the SLE. It does not change the editobject. When you use Value, it 
changes the underlying editobject which formats the value into your picture 
clause.

Regards,
Willie
Vulcan VIP

wrote in message 
news:8ccba769-ed95-4a2f-8270-0b36377e0e71@googlegroups.com...

Willie,

Thanks for the reply.
I mean the following - in the window PostInit oDCIban:CurrentText := 
'12345678'.
Focus oDCIban and move the cursor to the left or to the rigth by left right 
key and then type any symbol. The content of the field deletes.

This behavior occurs in to my classes :

CLASS CustomerSleDate INHERIT SingleLineEdit
METHOD Init(oOwner,nID,oPoint,oDimension,kStyle) CLASS CustomerSleDate
SUPER:Init(oOwner,nID,oPoint,oDimension,kStyle)
SELF:FieldSpec := DateFS{}
RETU SELF

CLASS CustomerSleIban INHERIT SingleLineEdit
METHOD Init(oOwner,nID,oPoint,oDimension,kStyle) CLASS CustomerSleIban
SUPER:Init(oOwner,nID,oPoint,oDimension,kStyle)
SELF:FieldSpec := FS_SleIban{}
SELF:SetStyle(ES_UPPERCASE)
RETU SELF


CLASS FS_SleIban INHERIT StringFS
METHOD Init() CLASS FS_SleIban
SUPER:Init(HyperLabel{'FS_Iban','FS_Iban','','FS_Iban'},50)
SELF:Picture:='NNNN NNNN NNNN NNNN NNNN NNNN NNNN NNNN'

If I remove SELF:FieldSpec := FS_SleIban{} all is OK.

Thank you
Regards,
Veselin 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause office.sonita@gmail.com - 2013-03-21 00:35 -0700
  Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause "Willie Moore" <williem@wmconsulting.com> - 2013-03-21 07:41 -0500
  Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause office.sonita@gmail.com - 2013-03-22 10:45 -0700
    Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause "Willie Moore" <williem@wmconsulting.com> - 2013-03-22 13:26 -0500
  Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause office.sonita@gmail.com - 2013-03-23 01:36 -0700

csiph-web