Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting value from a table opened in a different DS
Message
De
11/03/2010 14:50:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01453599
Message ID:
01454013
Vues:
27
>>>Now I need to get value of the curTest.SomeField. I can not change MakeCursor method in any way.
>>
>>And you don't need to!
>>
>>Set DataSession To oAppObj.DataSessionId
>>Select MyTable
>>loRetData = Createobject('Empty')
>>AddProperty( loRetData, 'records', Reccount() )
>>If Reccount() > 0
>>  AddProperty( loRetData, Textmerge( 'Row[<< reccount() >>]' ))
>>  Scan
>>    Scatter Name loRetData.Row[recno()]
>>  Endscan
>>Endif
>>set datasession to this.DataSessionID
>>messagebox( loRetData.Row[1].SomeField )
>>
Cetin
>
>The other constraint - the reason I started this thread - is to avoid switching datasessions.

I thought it was a baseless request. OK do it however you want as I said before:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform