Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lookup from a view
Message
From
14/01/2005 09:34:58
 
 
To
13/01/2005 15:32:17
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00976908
Message ID:
00977186
Views:
39
I had to so something similar.. maybe something like this would work.

Paul


oData = Framework.VFPSQLAdapterDataView("SELECT UPPER(Key) +'-' + UPPER(Module) as pkid, UPPER(Key) AS Key,UPPER(Module) AS Module,French,English FROM Message", toForm.lcStartupDirectory)

dim nrow as integer

lcKey = UCase(tcKey).PadRight(25, " ")
lcModule = UCase(tcModule).PadRight(20, " ")



odata.Sort = "pkid"
nrow = odata.Find(lckey & "-" & lcmodule)

If nrow <> -1 Then
Select Case tnLanguage

' French
Case 1
lcString = oData(nrow).Row("French")

' English
Case 2
lcString = oData(nrow).Row("English")

End Select


End If


Return Trim(lcString)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform