PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → hAdd problem
hAdd problem
Started by lily, Feb., 26 2004 12:21 PM - 2 replies
Posted on February, 26 2004 - 12:21 PM
i use hadd function, but it need every field in the window must be input , i use the access as my database. who can help me? thanks in advance.
Posted on February, 26 2004 - 1:39 PM
G'day Lily
Have a look at screentofile() and filetoscreen() in the help. These commands write data to and from files and windows for linked fields. You can also have invisible fields on a window that will be included in these commands.
Regards
Al
Posted on February, 27 2004 - 8:48 AM
HI,
HAdd(..) is a file function independent of the window. If you have a file named CUSTOMERS with the fields NUMBER (numeric, unique key) and NAME then
CUSTOMERS.NUMBER = 21000
CUSTOMERS.NAME = "Lilly"
HAdd(CUSTOMERS)
would add this record to the file. Please look into the Help for HAdd and do not forget to study the example!
Best regards,
Guenter
>i use hadd function, but it need every field in the window must be input , i use the access as my database. who can help me? thanks in advance.