var pFile = ['File1', 'File2', 'File3'];
FoxInCloud.MethExec('updatesignatures','signature_scx','updatesignatures',pFile) ;
I get the first element only.
I want to use an array since MethExec seems to allow only one parameter.
Thanks
Yes, FoxInCloud.MethExec() supports a value of any type
Just to be sure, we've implemented a sample here: http://foxincloud.com/tutotest/wFormStandardPage.tuto?awForm=Modal.scx > do form (adapted) > click button 'execute method';
You can also see the source code on line (pretty simple)
Note: VFP does not support passing a parameter by reference (necessary for an array) to a VFP method source of a bindEvent()
is it possible to pass an array? If so I do not seem to be doing it correctly:
var pFile = ['File1', 'File2', 'File3'];
FoxInCloud.MethExec('updatesignatures','signature_scx','updatesignatures',pFile) ;
I get the first element only.
I want to use an array since MethExec seems to allow only one parameter.
Thanks
if m.thisForm.wlHTMLgen
return Textmerge("FoxInCloud.MethExec(event, '<<m.this.wcID>>', 'wFormCallBack', [1, true, 'test', new Date()])")
endif
Tuvia,
Yes, FoxInCloud.MethExec() supports a value of any type
Just to be sure, we've implemented a sample here: http://foxincloud.com/tutotest/wFormStandardPage.tuto?awForm=Modal.scx > do form (adapted) > click button 'execute method';
You can also see the source code on line (pretty simple)
Note: VFP does not support passing a parameter by reference (necessary for an array) to a VFP method source of a bindEvent()
is it possible to pass an array? If so I do not seem to be doing it correctly:
var pFile = ['File1', 'File2', 'File3'];
FoxInCloud.MethExec('updatesignatures','signature_scx','updatesignatures',pFile) ;
I get the first element only.
I want to use an array since MethExec seems to allow only one parameter.
Thanks
Tuvia,
Yes, FoxInCloud.MethExec() supports a value of any type
Just to be sure, we've implemented a sample here: http://foxincloud.com/tutotest/wFormStandardPage.tuto?awForm=Modal.scx > do form (adapted) > click button 'execute method';
You can also see the source code on line (pretty simple)
Note: VFP does not support passing a parameter by reference (necessary for an array) to a VFP method source of a bindEvent()
is it possible to pass an array? If so I do not seem to be doing it correctly:
var pFile = ['File1', 'File2', 'File3'];
FoxInCloud.MethExec('updatesignatures','signature_scx','updatesignatures',pFile) ;
I get the first element only.
I want to use an array since MethExec seems to allow only one parameter.
Thanks
An issue only if your target method has a delegate through bindEvent()
When the method has no delegate FAS passes the value by reference - otherwise raises an error
In case the target method has a delegate and the value to be passed as parameter is an array, we can linearize this array;
in such case your method code would look like:
lparameters taValue
external array taValuelocal success;
, laValue[1];
, nRow, nColsuccess = .T.
do case
case Type('taValue', 1) == 'A'
nRow = Alen(taValue, 1)
nCol = Alen(taValue, 2)
if m.nCol > 0
dimension laValue[m.nRow, m.nCol]
else
dimension laValue[m.nRow]
endif
Acopy(taValue, laValue)
case Vartype(m.taValue) == 'C'
nRow = uValue(m.taValue, 'A', @m.laValue) && 'A' support to be developed
otherwise
assert .F. message 'unhandled parameter type'
success = .F.
endcaseif m.success
* ... process laValue ...
endif
please let me know if this would help
An issue only if your target method has a delegate through bindEvent()
When the method has no delegate FAS passes the value by reference - otherwise raises an error
In case the target method has a delegate and the value to be passed as parameter is an array, we can linearize this array;
in such case your method code would look like:
lparameters taValue
external array taValuelocal success;
, laValue[1];
, nRow, nColsuccess = .T.
do case
case Type('taValue', 1) == 'A'
nRow = Alen(taValue, 1)
nCol = Alen(taValue, 2)
if m.nCol > 0
dimension laValue[m.nRow, m.nCol]
else
dimension laValue[m.nRow]
endif
Acopy(taValue, laValue)
case Vartype(m.taValue) == 'C'
nRow = uValue(m.taValue, 'A', @m.laValue) && 'A' support to be developed
otherwise
assert .F. message 'unhandled parameter type'
success = .F.
endcaseif m.success
* ... process laValue ...
endif
please let me know if this would help
- release v 2.20
- remote view progressive fetching support
- !grid.Enabled
- this?
Useful but probably not a high priority, so depends on amount of effort required to test etc on your end.
An issue only if your target method has a delegate through bindEvent()
When the method has no delegate FAS passes the value by reference - otherwise raises an error
In case the target method has a delegate and the value to be passed as parameter is an array, we can linearize this array;
in such case your method code would look like:
lparameters taValue
external array taValuelocal success;
, laValue[1];
, nRow, nColsuccess = .T.
do case
case Type('taValue', 1) == 'A'
nRow = Alen(taValue, 1)
nCol = Alen(taValue, 2)
if m.nCol > 0
dimension laValue[m.nRow, m.nCol]
else
dimension laValue[m.nRow]
endif
Acopy(taValue, laValue)
case Vartype(m.taValue) == 'C'
nRow = uValue(m.taValue, 'A', @m.laValue) && 'A' support to be developed
otherwise
assert .F. message 'unhandled parameter type'
success = .F.
endcaseif m.success
* ... process laValue ...
endif
please let me know if this would help
-- thn (FoxInCloud)
sort terms priorities are:
- release v 2.20
- remote view progressive fetching support
- !grid.Enabled
- this?
Useful but probably not a high priority, so depends on amount of effort required to test etc on your end.
An issue only if your target method has a delegate through bindEvent()
When the method has no delegate FAS passes the value by reference - otherwise raises an error
In case the target method has a delegate and the value to be passed as parameter is an array, we can linearize this array;
in such case your method code would look like:
lparameters taValue
external array taValuelocal success;
, laValue[1];
, nRow, nColsuccess = .T.
do case
case Type('taValue', 1) == 'A'
nRow = Alen(taValue, 1)
nCol = Alen(taValue, 2)
if m.nCol > 0
dimension laValue[m.nRow, m.nCol]
else
dimension laValue[m.nRow]
endif
Acopy(taValue, laValue)
case Vartype(m.taValue) == 'C'
nRow = uValue(m.taValue, 'A', @m.laValue) && 'A' support to be developed
otherwise
assert .F. message 'unhandled parameter type'
success = .F.
endcaseif m.success
* ... process laValue ...
endif
please let me know if this would help