| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > INIClass > INIClass Methods >====== FetchQueue (get INI file queue entries) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[fetchfield return comma delimited ini file value .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[init initialize the iniclass object .htm|{{btn_next_n.gif|Next page}}]] | | || **FetchQueue( **//section, entry, queue, field //[,//field//] [,//field//] **)** {{blk2blue.jpg|blk2blue.jpg}} | **FetchQueue** | Adds a series of values from the INI file to a QUEUE. | | //section// | A string constant, variable, EQUATE, or expression containing the INI file section name. | | //entry// | A string constant, variable, EQUATE, or expression containing the INI file entry name. | | //queue// | The label of the QUEUE to receive the values. | | //field// | The label of the field in the QUEUE to receive the value. You must specify at least one field, and you may specify up to three fields. | The **FetchQueue **method adds a series of values from the INI file into the specified //field//s in the specified //queue//. **Implementation:** FetchQueue assumes multiple //entry //values of the form: **[section]** **entry=ItemsInQueue** **entry_n=value,optionalvalue,optionalvalue** for example: **[Users]** **User=3** **User_1=Fred,1** **User_2=Barney,0** **User_3=Wilma,1** **Example:** **UserQ   QUEUE** **Name     STRING(20)** **Auth     BYTE** **        END** ** CODE** ** INIMgr.FetchQueue('Users','User',UserQ,UserQ.Name,UserQ.Auth)!get UserQ** ** !program code** ** INIMgr.Update('Users','User',RECORDS(UserQ))     !put UserQ count** ** LOOP i# = 1 TO RECORDS(UserQ)                    !put UserQ entries** **  GET(UserQ,i#)** **  INIMgr.Update('Users','User_'&i#,CLIP(UserQ.Name)&','&UserQ.Auth)** ** END**