اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

موضوع يحتاج مبدعين لحل استبدال الحرف العربي بالانجليزي مع التنسيق


r3dx
إذهب إلى أفضل إجابة Solved by TQTHAMI,

الردود الموصى بها

إذا الموضوع يخص أرقام لوحات السيارات بالسعودية ، فهذا كود من أحد برامجي القديمة.
 

Function GetPlateNo(ByVal EngNo As String) As String
   Dim E, A
   E = Array("A", "B", "D", "E", "G", "H", "J", "K", "L", "N", "R", "S", "T", "U", "V", "X", "Z")
   A = Array("ا", "ب", "د", "ع", "ق", "هـ", "ي", "ك", "ل", "ن", "ر", "س", "ط", "و", "ي", "ص", "م")
   Dim L As Integer
   Dim S As Byte
   Dim ArbNo As String
   Dim LftNo As String
  
   If Len(EngNo) = 8 Then
     LftNo = Left(EngNo, 4)
     EngNo = Right(EngNo, 3)
   End If
  
   If Len(EngNo) <> 3 Then
     GetPlateNo = EngNo
     Exit Function
   End If
  
   For L = 3 To 1 Step -1
      For S = 1 To 17
         If Mid(EngNo, L, 1) = E(S - 1) Then
            ArbNo = ArbNo & " " & A(S - 1)
            Exit For
         End If
      Next S
    Next L
  
   GetPlateNo = Trim(LftNo & " " & ArbNo)
End Function

 

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information