Schultz’s PowerBuilder Notes

Working with PFC INI Files

Reading from the User INI file

// get list of CSR emp ids from INI file and select these
ls_usr_ini = gnv_app.of_GetUserIniFile( )
ls_csr_string = ProfileString(ls_usr_ini, "CSR", "EMP_ID", "")

Writing to the User INI file

ls_usr_ini = gnv_app.of_GetUserIniFile( )

//    Collect all CSRs in a comma delimited string
FOR ll_indx = 1 TO li_csr_cnt
ls_key = Trim(dw_selected.GetItemString(ll_indx, "cemp_id"))
if ll_indx > 1 then
ls_csr_string += ", " + ls_key
ls_csr_string += ls_key
end if

ls_csr_string = ProfileString(ls_usr_ini, "CSR", "EMP_ID", "")
SetProfileString(ls_usr_ini, "CSR", "EMP_ID", ls_csr_string)

July 10, 2008 - Posted by | 3. PFC, Application Services | , , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: