Welcome! Log In Create A New Profile

Advanced

memory table

Posted by emirhan 
emirhan
memory table
January 26, 2009 03:31PM
Hi I am new in Windev

I have a table in a window and there are some informations in the table, I need to save the information to the database but I dont know how can I do that. Please help me thank you...
christoph
Re: memory table
January 26, 2009 04:13PM
Hi emirhan,

FOR i = 1 TO TABLECOUNT(table_name)

column_name give you the information in the field
then Hadd(.... to save the information.

END

Christoph
emirhan
Re: memory table
January 26, 2009 04:30PM
Hi Christoph,

this is my code but there was an error that I could not understand.

FOR i = 1 TO TableCount(TABLE_path)
BCK_settings_path.path_name = TABLE_path.COL_Path_name

HAdd(BCK_settings_path)
END


The error;
Error in Click BTN_win_backup_conf_save process, line 5.
++ operator not allowed


thank you..
christoph
Re: memory table
January 27, 2009 06:58AM
Hi emirhan,

dont see any error in your code. You are sure, that the error is there ?

Christoph
Al
Re: memory table
January 27, 2009 07:42AM
Hello Emirhan

The code you posted only has 4 lines but the error said it was on line 5.
You could try the "STOP" command after the "FOR" command and step through the code to pinpoint the error line.

FOR i = 1 TO TableCount(TABLE_path)
STOP
BCK_settings_path.path_name = TABLE_path.COL_Path_name



The other thing to consider when using HAdd(), is the current state of the file record buffer

HReset(Filename) clears the file buffer and sets up a blank record to be filled and saved with Hadd(), so use it when you want a clean new record

If you want to retain any values from the current file record in the new record then just assign new values to the fields that are changed and then HAdd().


Regards
Al
emirhan
Re: memory table
January 27, 2009 08:06AM
Hi friends
I sloved the problem,the error was not about the loop

Thanks
Emirhan
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: