Populating the textgadget issue
Posted: Sat Sep 09, 2017 6:42 am
I am still rather new to PB and took the past year away from any code and I have decided to get back into it to learn more.
This maybe a rather simple and silly problem but the resolve escapes me and it has been nagging at me for a couple days now..... I am attempting to populate my textgadget with data from my DB however I am running into an issue when populating.
When I run the program the textgadget (8 of them), will populate fine for the first row of data in the table however it will not populate anything other than the first row. There has to be something I am overlooking or have forgotten about because I just can't seem to get it to populate the rest of the rows in the table.
Here is my existing populate procedure:
I have looked at this for hours on end and tried many different things to try to get it to populate all the other rows into the respective columns but nothing has worked yet.
Any insight as to why it is not working would be much appreciated.
This maybe a rather simple and silly problem but the resolve escapes me and it has been nagging at me for a couple days now..... I am attempting to populate my textgadget with data from my DB however I am running into an issue when populating.
When I run the program the textgadget (8 of them), will populate fine for the first row of data in the table however it will not populate anything other than the first row. There has to be something I am overlooking or have forgotten about because I just can't seem to get it to populate the rest of the rows in the table.
Here is my existing populate procedure:
Code: Select all
Procedure populateDHSF()
dbcolumn = 0
If DatabaseQuery(#dbaseID, "SELECT * FROM DrawHistorySF") ; get all data from database DHSF
NextDatabaseRow(#dbaseID) ; get next row in database
spacer = Space(2) ; add 2 spaces to the out put when populating
For populate = #MonthDHSF To #B1DHSF ; populate columns MonthSF through B1DHSF
SetGadgetText(populate, spacer + GetDatabaseString(#dbaseID, dbColumn))
dbColumn +1
Next
EndIf
FinishDatabaseQuery(#dbaseID)
EndProcedure
Any insight as to why it is not working would be much appreciated.