11-18-2005, 04:56 AM
Hello again... I have a new problem with qbasic...
I warn everyone that you may not understand me well because i'm argentinian and my english is a bit weak.
My problem is this:
I want to make three variables that contain the actual month, the actual time and the actual year.
I made something like this:
But when i try to make an operation with this variables i've got "Tipe missmatch" error, becouse QB thinks month$ is a string variable, but it has only numbers.
Is there any other way to get the actual time, year and day? Or is there any way to "convert" a string variable with only contains numbers?
Thanks a lot
I warn everyone that you may not understand me well because i'm argentinian and my english is a bit weak.
My problem is this:
I want to make three variables that contain the actual month, the actual time and the actual year.
I made something like this:
Code:
month$ = LEFT$(DATE$,2)
year$ = RIGHT$(DATE$,4)
aux$ = LEFT$(DATE$, 5)
day$ = RIGHT$(aux$,2)
But when i try to make an operation with this variables i've got "Tipe missmatch" error, becouse QB thinks month$ is a string variable, but it has only numbers.
Is there any other way to get the actual time, year and day? Or is there any way to "convert" a string variable with only contains numbers?
Thanks a lot