dbTalk Databases Forums  

writetoclipboard truncate last digit

comp.databases.paradox comp.databases.paradox


Discuss writetoclipboard truncate last digit in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
marco
 
Posts: n/a

Default writetoclipboard truncate last digit - 05-26-2008 , 11:44 AM






pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco

Reply With Quote
  #2  
Old   
Egbert Babst
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-26-2008 , 05:48 PM






Marco,

no idea concerning P7. With P9 your code works perfectly.

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"marco" <n_sp_hum_marco.foglia (AT) tucsoft (DOT) com> schrieb im Newsbeitrag
news:483ae907$1_3 (AT) news (DOT) bluewin.ch...
Quote:
pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco




Reply With Quote
  #3  
Old   
Egbert Babst
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-26-2008 , 05:48 PM



Marco,

no idea concerning P7. With P9 your code works perfectly.

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"marco" <n_sp_hum_marco.foglia (AT) tucsoft (DOT) com> schrieb im Newsbeitrag
news:483ae907$1_3 (AT) news (DOT) bluewin.ch...
Quote:
pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco




Reply With Quote
  #4  
Old   
Egbert Babst
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-26-2008 , 05:48 PM



Marco,

no idea concerning P7. With P9 your code works perfectly.

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"marco" <n_sp_hum_marco.foglia (AT) tucsoft (DOT) com> schrieb im Newsbeitrag
news:483ae907$1_3 (AT) news (DOT) bluewin.ch...
Quote:
pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco




Reply With Quote
  #5  
Old   
Egbert Babst
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-26-2008 , 05:48 PM



Marco,

no idea concerning P7. With P9 your code works perfectly.

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"marco" <n_sp_hum_marco.foglia (AT) tucsoft (DOT) com> schrieb im Newsbeitrag
news:483ae907$1_3 (AT) news (DOT) bluewin.ch...
Quote:
pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco




Reply With Quote
  #6  
Old   
Egbert Babst
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-26-2008 , 05:48 PM



Marco,

no idea concerning P7. With P9 your code works perfectly.

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"marco" <n_sp_hum_marco.foglia (AT) tucsoft (DOT) com> schrieb im Newsbeitrag
news:483ae907$1_3 (AT) news (DOT) bluewin.ch...
Quote:
pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco




Reply With Quote
  #7  
Old   
Egbert Babst
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-26-2008 , 05:48 PM



Marco,

no idea concerning P7. With P9 your code works perfectly.

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"marco" <n_sp_hum_marco.foglia (AT) tucsoft (DOT) com> schrieb im Newsbeitrag
news:483ae907$1_3 (AT) news (DOT) bluewin.ch...
Quote:
pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco




Reply With Quote
  #8  
Old   
Egbert Babst
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-26-2008 , 05:48 PM



Marco,

no idea concerning P7. With P9 your code works perfectly.

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"marco" <n_sp_hum_marco.foglia (AT) tucsoft (DOT) com> schrieb im Newsbeitrag
news:483ae907$1_3 (AT) news (DOT) bluewin.ch...
Quote:
pdx7.0.5.57, bde 5.1, wxp sp1

a form with a field bound to a longinteger field of a table.
The following code in mouseRightUp

var
pop popupmenu
s string
endvar
disabledefault
pop.addText("Copy number")
Pop.show()
writetoclipboard(string(self))
;self=269197
;code below added as debugging
if s.readFromClipboard() then
msginfo(self,s)
; display "269197 26919" instead of "269197 269197"
endif

any idea of what is happening?
thank you
marco




Reply With Quote
  #9  
Old   
marco
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-27-2008 , 04:54 PM



|-| /-\ |_ ()7 [°¿°] wrote:
Quote:
Hi!
Yes, I see the same problem. With this code:
var
s string
endvar
s="123"
msginfo(1,s) ;==> 123
s.writetoclipboard()
s.readFromClipboard()
msginfo(2,s) ;==> 12


But, if you can change s string by s memo the problem is deleted.
Pas exactement.

-------------------------
s memo
endvar
....
writetoclipboard(string(self))

-------------------------
does not work but
-------------------------
s memo
endvar
....
s=self
writetoclipboard(s)
-------------------------

works. Weird but it works

merci beaucoup

marco





Quote:
@-salutations

Reply With Quote
  #10  
Old   
marco
 
Posts: n/a

Default Re: writetoclipboard truncate last digit - 05-27-2008 , 04:54 PM



|-| /-\ |_ ()7 [°¿°] wrote:
Quote:
Hi!
Yes, I see the same problem. With this code:
var
s string
endvar
s="123"
msginfo(1,s) ;==> 123
s.writetoclipboard()
s.readFromClipboard()
msginfo(2,s) ;==> 12


But, if you can change s string by s memo the problem is deleted.
Pas exactement.

-------------------------
s memo
endvar
....
writetoclipboard(string(self))

-------------------------
does not work but
-------------------------
s memo
endvar
....
s=self
writetoclipboard(s)
-------------------------

works. Weird but it works

merci beaucoup

marco





Quote:
@-salutations

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.