Droopy's lib bug? + question about search

Everything else that doesn't fall into one of the other PB categories.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Droopy's lib bug? + question about search

Post by GeoTrail »

When I run this on my machine:

Code: Select all

MessageRequester("OS Version",OSVersionText())
I just get a blank message box. I'm running Windows XP Pro x64.

And the question:
When I use the Ldb, how can I search for several fields at once?
Lets say I wanna search for Robert Olsen, and not just Robert or Olsen, I have one field named firstname and one called lastname.

:?:
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

with the message box question, is it pb4? if it is, make sure u r using the right lib file for the mode that the program is working in (Unicode/ASCII)

about ldb, i have no idea, i also dont know if it works in unicode mode on pb4.....
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

No, I'm using 3.94 because I need some libs that aren't available for v4 yet.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

for a pb4 version of droopys lib, look at out site (http://droopyslib.us.to)

if its for pb3.94, then i dont have a clue, try using osversiontext() with the debug command
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

It just returns NULL.
When I use OSVersion() it returns 65 (#PB_OS_Windows_Server_2003) which isn't correct at all :shock:
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

looks like there's something wrong with ure windows install....
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

When I run this on my machine:Code:
MessageRequester("OS Version",OSVersionText())
I just get a blank message box. I'm running Windows XP Pro x64.
Works great with XP Pro x32, perhaps it's a XP Pro x64 issue ?
And the question:
When I use the Ldb, how can I search for several fields at once?
Lets say I wanna search for Robert Olsen, and not just Robert or Olsen, I have one field named firstname and one called lastname.
You can't, you can use a code like this :

Code: Select all

For n=1 To LdbCountRecord()
  LdbSetPointer(n)
  If LdbRead(#FirstName)="Robert" And LdbRead(#LastName)="Olsen"
    ;/ Match Search !
  EndIf
Next
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

This is the code of OsVersionText

Code: Select all

ProcedureDLL.s OSVersionText()
Select  OSVersion()
  Case #PB_OS_Windows_NT3_51 
    retour.s="Windows NT 3.51"
  Case #PB_OS_Windows_95 
    retour.s="Windows 95"
  Case #PB_OS_Windows_NT_4 
    retour.s="Windows NT4"
  Case #PB_OS_Windows_98 
    retour.s="Windows 98"
  Case #PB_OS_Windows_ME 
    retour.s="Windows Me"
  Case #PB_OS_Windows_2000 
    retour.s="Windows 2000"
  Case #PB_OS_Windows_XP 
    retour.s="Windows XP"
  Case #PB_OS_Windows_Future
    retour.s="Unknown"
EndSelect
ProcedureReturn retour
EndProcedure
It's possible PB 3.94 don't recognize XP x64 ?
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Droopy wrote:
When I run this on my machine:Code:
MessageRequester("OS Version",OSVersionText())
I just get a blank message box. I'm running Windows XP Pro x64.
Works great with XP Pro x32, perhaps it's a XP Pro x64 issue ?
Might be right there, don't know, haven't used it for very long.
Droopy wrote:
And the question:
When I use the Ldb, how can I search for several fields at once?
Lets say I wanna search for Robert Olsen, and not just Robert or Olsen, I have one field named firstname and one called lastname.
You can't, you can use a code like this :

Code: Select all

For n=1 To LdbCountRecord()
  LdbSetPointer(n)
  If LdbRead(#FirstName)="Robert" And LdbRead(#LastName)="Olsen"
    ;/ Match Search !
  EndIf
Next
Great idea Droopy I'll use that method :)
Thanks m8
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Post Reply