For #1:
Declare a local string (ls_inifile) and set it - ls_inifile =
gnv_app.of_GetAppInifile(). Run through it in debug, I think you will
find that your app ini file is not being set correctly. Check how it's
being set in the appmanager. If it is being set like
this.of_setappinifile("myini.ini"), what usually happens in development
is that when your current directory changes, it cannot find the ini
file. I don't recommend hardcoding the path along with the ini name
because then if you forget to change it before you compile, the user
will need to have the same folder names. You can change the current
directory before you run (in development) by clicking on the "Edit"
icon, then select the current directory (where the ini is located),
pick any file or even hit cancel, and you should be ok. I'll defer to
someone else for #2. Let me know if this doesn't work for you.
Kevin Ridley
VP of Development
EMAC, LLC.
[EMAIL PROTECTED]
--- [EMAIL PROTECTED] wrote:
> Hi.
>
> 1.
> I am trying to set SQLCA parmeters from an ini file.
> SQLCA.of_init(gnv_app.of_GetAppIniFile(),
> "Database") returns a 1 indicating
> success.
>
> However, all the parameters (DBMS, Database,
> ServerName) are seen to be
> null,
> probably because ProfileString(inifile, "database",
> DBMS , '') take the
> default value of ''.
>
> I tried explicitly doing a ProfileString instead of
> depending on
> SQLCA.of_init
> e.g
> SQLCA.DBMS =
> ProfileString(gnv_app.of_GetAppIniFile(),
> "Database", "DBMS",
> '')
> which also returns a ''
>
> My ini file is
> [Database]
> DBMS="SYC"
> Database=drift
> ServerName=drkbbancbwv9x
> AutoCommit=False
> DBParm=Release='11',CursorScroll='Forward',CursorLock='OptVal'
>
> I tried setting the values within and without quotes
>
> e.g DBMS="SYC" and DBMS=SYC.
> Neither works.
>
> Could somebody point out what I am doing wrong?
>
> 2.
> I need to encrypt user password and store them in a
> database.
> Is there anyway of specifying in PB that a field has
> to be encrypted while
> being saved in the database?
>
> Thanx
> Sreekumar
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH
> LIST SERVE COMMANDS, ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING
> MESSAGE: help pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]