تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
مساعدة في برنامج جدول الموظفين بـ console application
#3
هذا هو البرنامج مشكلتي الان في الاستعلام في البرنامج مع العلم انه غير متصل بقاعدة بيانات
مثلا استعلام عن الموظفين الذين يقل مرتبهم عن 1000




Module Module1
Structure employees
Dim name As String
Dim address As String
Dim department As String
Dim salary As Double
End Structure
Sub Main()
Console.WriteLine("name address department salary")
Dim i, j As Integer
Dim a(2, 3) As employees
For i = 1 To 2
For j = 1 To 3
a(i, j).name = InputBox("enter the name")
a(i, j).address = InputBox("enter the address")
a(i, j).department = InputBox("enter the department")
a(i, j).salary = InputBox("enter the salary")
Next j
Next i

For i = 1 To 2
For j = 1 To 3
Console.WriteLine(a(i, j).name & " " & a(i, j).address & " " & a(i, j).department & " " & a(i, j).salary)
Console.ReadLine()
Next
Next
Dim evensQuery = From salary In employees
Where num Mod 2 = 0
Select num
For Each number In evensQuery
Console.Write(number & " ")
Next
End Sub
End Module
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
مساعدة في برنامج جدول الموظفين بـ console application - بواسطة mhdmbk - 14-02-13, 09:53 PM


التنقل السريع :


يقوم بقرائة الموضوع: