I managed to bypass the error using "LATIN_TWO_ A" and "LATIN_TWO_ B",
but it still appears when using greek letters:
Query:
SELECT Lesson_Id, Lesson_Name
FROM Lesson_Names
WHERE Lesson_Name='ΛΑ ΤΙΝ_2Α'
Results:
154 ΛΑΤΙΝ_2Α
155 ΛΑΤΙΝ_2Β
...
User Profile
Collapse
-
Try this:
1) Create a wx.timer object in your app.
2) Start the timer just before the wx.MessageBox appears
3) In the function that your timer calls , 'find' any 'wx.MessageBox' dialogs and 'Destroy' them , so execution continues.
DOnt know if it will work , but give it a try!!!!Leave a comment:
-
Strange query results
Hello!
I have a table with a column called "Lesson_Names", varchar type.
The following query :
"SELECT Lesson_Id FROM Lesson_Names WHERE Lesson_Name='LA TIN_2A' "
returns 2 IDs instead of 1 ( the IDs of "LATIN_2A" and of "LATIN_2B" ) .
Is there something i am doing wrong?
Thank you in advance ,
Elias -
You are right!!!
It is was as simple as that!!! The scanner behaves like a keyboard typing numbers to the active procedure.
I tried it in the interactive prompt and i got the number i scanned.
I guess it will work the same way with a GUI component ( like a text box etc ).
As soon as i will confirm this , i will inform you!!
Thank you so much for your help.
EliasLeave a comment:
-
-
Help with Barcode
Hello everybody!!!
I have a python application which i want to associate with a barcode reader.
Can somebody give me a hint on how to do that (how can the application "catch" a message from the reader)? Which python libraries are used?
Any help is welcomed , i will then start my research in the right direction.
Thank you all in advance ,
Elias
( Vista , Python 2.5 , wxPython... -
Hello there!!
Thank you so much!!!
It worked!!!! I will also like to thank you for the advise and the comments
which i am sure going to help me in the future!!
Thanks again!!!!
EliasLeave a comment:
-
Hi!
I am sorry but i cannot find any difference in the code.
Is there something i'm missing?Leave a comment:
-
Beginners Question
Hello everybody!
Can anyone please help me with the connection to an SQL Server? I use the
following code:
Code:Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim LibraryDB As New SqlClient.SqlConnection( _ "Data Source=ELIAS-NEWPC\SQLEXPRESS;" & _ "Initial
-
Also i would suggest that you'd change your test to:
Code:if type(i) is type(1): return True else: return False
Leave a comment:
-
Hi!
I am realy "out" of this subject , but i stumbled on some scripts that might
help you....
run them , modify them , and hopefully they will work for you....
Code:import pyHook import pygame # create a keyboard hook def OnKeyboardEvent(event): print 'MessageName:',event.MessageName print 'Message:',event.Message print 'Time:',event.Time
Leave a comment:
-
Elias Alhanatis replied to Need Python sample code for open,modify and save the existing excel sheetin PythonHi!!
I am not so new in Python , so here is a sample of a script i use to do something like you described:
( Of course you should change all the variables i use and put your own ,
but since i came up with this after some good research ( mainly in the fields of
Visual Basic... ) , i think its a good place for you to start... )
I hope this will help a bit....
Code:from win32com.client
Leave a comment:
-
Thank you so much for both tips!!! As you can tell i am new to Linux and i must get used to new things and tricks even for the simplest procedures....
Thanks again!!!!Leave a comment:
-
Hi!!
Thank you for your quick reply , i tried those instructions you gave to me , in order to get a clue of what was going on , and actually succeded ( by chance ...) to connect to the internet through a LAN. I will stick with that for now and try to improve my understanding of Linux.
By the way , when i am asked for my password in the terminal ( while trying to install something ) , it seems i cant type anything after...Leave a comment:
-
Ubuntu and Wifi Trouble
Hello!
I run Ubuntu from a live disk distribution , and although my wifi card is active and it detects the wifi network of my house , when i enter the WEP Hex Key , it refuses to connect , with no errors message so that i could figure out whats wrong...
I searched a little bit in the net and i see also other people having more or less the same problem , but i believe i am very close to the solution , since the wifi card... -
Dont know whats wrong....
Hello!!
I have installed the latest Apache version on Windows Vista and it works fine
as a service , and i also get the expected screen on 'localhost'.
But when i try to access the web pages from another computer , i get various errors.
My Apache is running on a computer 'behind' a wirelles router ( Linksys ) , and is listening on port 80 ( as instructed ). I tried 'pinging' my ip ( actualy , the routers ip ) from another... -
Inspired by the challenge , i will try to wrap it up in a
function without an 'if' clause and without an index. I will do it tonight , cause
right now i am at work ( LOL ) , so check this thread out later....Leave a comment:
-
Hi again!
The exec() function takes a string as an argument and just "makes it happen" ,
so all we must do is create a string that would give us the result we need if we
typed it in the interactive prompt.
The trick is that if a value in the dict IS a string , we must 'work our way around' in order not to confuse it with the exec() string we want to produce.
In any other case ( i suppose ) , there...Leave a comment:
-
Hello!
I think this code is what you need.Adjust it to your needs.....
Sorry , but i dont remember where i got it from......
Code:import smtplib smtpserver = 'foo.foo.foo' AUTHREQUIRED = 1 # if you need to use SMTP AUTH set to 1 smtpuser = 'spam' # for SMTP AUTH, set SMTP username here smtppass = 'egs' # for SMTP AUTH, set SMTP password here RECIPIENTS
Leave a comment:
-
Rushed to post the reply but forgot the case of values being strings!!!!!
Here is the improved ( yet still simple or 'naive' ) suggestion:
Code:a={'w':1,'e':'rt6','r':3} index=0 for key in a.keys(): if type(a[key])!=type(""): exec(str(a.keys()[index])+'='+str(a[key])) else: exec(str(a.keys()[index])+'="'+str(a[key])+'"') index+=1
Leave a comment:
No activity results to display
Show More
Leave a comment: