Hey, it works. Thanks! By the way, how come I don't nned to use EXTERNAL ARRAY in a function or procedure for passing array? The compiler only complains it when it is in a form's method.
Hi folks,
I am trying to pass an array to a user define method with the following code
In the command button's click event
SELECT firstname, lastname ;
FROM users ;
WHERE id=123 ;
INTO ARRAY aUser
THISFORM.runautofill(@aUser)
In the form's runautofile method
LPARAMETERS...
Hi folks,
I am using VFP 8. I notice there is a "Save As HTML" option in the File menu. I look at some other people posted the related questions here. Most of the suggestions were using frx2word. Is it impossible to programmically save the report to HTML with this built-in festure? If it...
Hi folks,
I have a ListBox that list all the items in different categores. Since there are too many, I want the items to be color coded base on their categories. Is it possible?
Thanks!
Billy
Hi folks,
I run a query and store the result into an array for the list box. If there is no result from the query, the list list box will show a line with .F.. How can I display an empty list instead of one line of .F. when the result is empty?
Thanks!
Billy
Good point, I should use FOUND() to see if I can LOCATE. Thanks!
By the way, does it mean RLOCK() will be released after I close the table?
Thanks!
Billy Ng
Hi folks,
In VFP, is there any way to synchronize a method (like C and Java) in order to make the threads to access a function one at a time.
Thanks in advance!
Billy
Hi folks
If I do the following in the init()
SELECT table1
LOCATE for key=10
IF RLOCK()
&& do something
.....
USE IN table1
ENFIF
Can I just do
SELECT table1
UNLOCK IN table1
to release the record lock later in the destory()?
Thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.