Buongiorno a tutti č il mio primo(spero di molti) collegamento come Vs utente. Ho questo problema che causa la mia inesperienza non riesco a risolvere:
Ho due hashtable (dove le key sono le stesse).
Vorrei in una RichText box scrivere il contenuto di queste hash
incolonnato:
Hash1.Key Hash1.Value Hash2 .Value
Hash1.Key Hash1.Value Hash2 .Value.
Ho scritto questo codice ma mi restituisce per hash2 sempre il primo
valore:
Dim myDictionary As IDictionaryEnumerator
myDictionary =
WindowsApplication1.DiabeteII.EstrazDB.GetEnumerator
Dim myDictionary2 As IDictionaryEnumerator
myDictionary2 =
WindowsApplication1.DiabeteII.EstrazLor.GetEnumerator
Dim stringa As String
While myDictionary2.MoveNext
While myDictionary.MoveNext
stringa = stringa + Chr(13) +
myDictionary.Key.ToString + " " + Chr(9) +
myDictionary.Value.ToString + " -" + myDictionary2.Value.ToString
End While
End While
RischioAttribuito.Text = "Il profilo di rischio associato per il
DiabeteII č:" & (Chr(13)) & (Chr(13)) & SommatoriaDiabeteII &
(Chr(13)) & (Chr(13)) & (Chr(13)) & "Dettaglio Analisi per" &
(Chr(13)) & "SNP OR LogOR" & (Chr(13)) & (Chr(13)) & stringa
Qualcuno mi puo dare una dritta per favore?
Grazie
|