How to return a var vs no modal dialog

How to return a var vs no modal dialog

Postby ShumingWang » Fri Sep 16, 2011 2:54 am

Hi,
function abc()
local var1:=space(10)

define dialog odlg
@1,1 get var1 of odlg
activate dialog odlg no modal

return

I want return the var1 value

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 return a var vs no modal dialog

Postby Bayron » Fri Sep 16, 2011 3:01 am

I don't use non modal dialog's, but try this:
Code: Select all  Expand view
....
local var1:=space(10)
abc(var1)
....
function abc(var1)

   define dialog odlg

      @1,1 get var1 of odlg UPDATE

   activate dialog odlg no modal

return
 
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: How to return a var vs no modal dialog

Postby ShumingWang » Fri Sep 16, 2011 5:01 am

abc(@var1)
This still return space(10), the orignal value.
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 return a var vs no modal dialog

Postby Horizon » Fri Sep 16, 2011 7:37 am

Hi,

Why don't you use "return Var1" ?
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: How to return a var vs no modal dialog

Postby ShumingWang » Fri Sep 16, 2011 7:46 am

Horizon wrote:Hi,

Why don't you use "return Var1" ?


no modal dialog direct goes to the return line, instead of after close dialog .

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 108 guests