Page 1 of 1
					
				Droopy's lib bug? + question about search
				Posted: Sun Jul 23, 2006 2:17 am
				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.
 

 
			
					
				
				Posted: Sun Jul 23, 2006 11:52 am
				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.....
			 
			
					
				
				Posted: Sun Jul 23, 2006 12:20 pm
				by GeoTrail
				No, I'm using 3.94 because I need some libs that aren't available for v4 yet.
			 
			
					
				
				Posted: Sun Jul 23, 2006 12:43 pm
				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
 
			
					
				
				Posted: Sun Jul 23, 2006 12:47 pm
				by GeoTrail
				It just returns NULL.
When I use OSVersion() it returns 65 (#PB_OS_Windows_Server_2003) which isn't correct at all 

 
			
					
				
				Posted: Sun Jul 23, 2006 12:51 pm
				by lexvictory
				looks like there's something wrong with ure windows install....
			 
			
					
				
				Posted: Sun Jul 23, 2006 6:00 pm
				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
 
			
					
				
				Posted: Sun Jul 23, 2006 6:04 pm
				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 ?
 
			
					
				
				Posted: Sun Jul 23, 2006 7:24 pm
				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