FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to init a "M" var?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to init a "M" var?
Posted: Thu Jun 08, 2017 09: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
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: How to init a "M" var?
Posted: Thu Jun 08, 2017 02: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 (fw): Select all Collapse
    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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: How to init a "M" var?
Posted: Fri Jun 09, 2017 01: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to init a "M" var?
Posted: Fri Jun 09, 2017 09:56 AM

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

EMG

Continue the discussion