How to init a "M" var?

How to init a "M" var?

Postby ShumingWang » Thu Jun 08, 2017 9:14 am

Hi!
c1:=space(1)
? valtype(c1) // "C"

How to
m1:=xxx
?valtype(m1) // "M"

Thanks a lot!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How to init a "M" var?

Postby Armando » Thu Jun 08, 2017 2:59 pm

Mr. Shuming:

As I know you can initiate the var as an empty string for a memo field, the trick
is the GET

Code: Select all  Expand view

    oEmp:MSG := ""
...
...
...
...
            REDEFINE GET aGets[49] VAR oEmp:MSG ID 402 OF oFld:aDialogs[4] UPDATE;
                MEMO ;
                MESSAGE "Mensaje que llevará el correo"
 


I hope these is what you are looking for.

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3223
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: How to init a "M" var?

Postby ShumingWang » Fri Jun 09, 2017 1:58 am

Thank you for your reply.
use test2
? valtype(test2->a2) // "M"

m1:=test20>a2
? m1 // "C"

In xbrowse--- xcolumn-- method edit() ,
if ValType( uValue ) $ 'CM' ...
::oEditGet := TMultiGet():New(.."

The uvalue must be "M" , I should fund other way to solve this.

TKS!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How to init a "M" var?

Postby Enrico Maria Giordano » Fri Jun 09, 2017 9:56 am

M type is only for memo fields, as far as I know.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 113 guests