Visual FoxPro 9 Assign Query to Variable List -


i c# programmer working on legacy foxpro (point of sale) system, , know how assign results of dbf query variable can useful selected data. in c#, flow create model reflecting database table, run query, assign results list of mymodel, , perform subsequent operations on list of mymodel. feeling foxpro different paradigmatically, , i'm having heck of time finding information online. while supervisor way more experienced me, there no-fault communication barrier because different programming eras. can teach new dog trick?

what do:

myvar = select netinteractivity.status;         netinteractivity.dbf netinteractivity;         id=myid 

foxpro doesn't let direct assignment query way. have 2 options:

1) store query result array , use appropriate array element.

select netinteractivity.status;         netinteractivity.dbf netinteractivity;         id=myid ;         array astatus * astatus[1] contains value selected 

store query result cursor , use appropriate field.

select netinteractivity.status;         netinteractivity.dbf netinteractivity;         id=myid ;         cursor csrstatus * csrstatus.status contains value selected 

Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -