Jump to content
Sign in to follow this  
BryonR

IfBitand from ini [SOLVED]

Recommended Posts

BryonR

Not quite sure what I'm doing wrong here.

If BitAND(IniRead("c:\test\test.ini", "Ticket", "sale", "Not Configured"), 1) Then $db_sale = GUICtrlRead($input_sale)
If BitAND(IniRead("c:\test\test.ini", "Ticket", "sale", "Not Configured"), 0) Then $db_sale = "|"

I'm trying to do the following logic.

If ini bit = 1 then read gui else |

Bryon

Edited by BryonR

Share this post


Link to post
Share on other sites
Valuater

There is no need to make it complicated, nor read the same file twice...

If IniRead("c:\test\test.ini", "Ticket", "sale", "Not Configured") = 1 Then
 $db_sale = GUICtrlRead($input_sale)
Else
 $db_sale = "|"
EndIf

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
BryonR

Got hung up on the BitAND.

Thank you

Share this post


Link to post
Share on other sites
BryonR

Welcome!!

Seems, I have helped you before.... Did you see may last post on yout last thread?

... Apparently you have been a man on a mission...

http://www.autoitscript.com/forum/index.ph...ult_type=topics

8)

Yes I did, thank you! :mellow: I'm working on refining a helpdesk ticket tracking solution. Thus far it has email and database entry.

It also has customization through ini edit.

-Bryon

Edited by BryonR

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×