Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting to table from an array
Message
From
21/01/2010 09:17:20
 
 
To
21/01/2010 09:05:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01445175
Message ID:
01445185
Views:
28
>>Hello!
>>I am trying to write values from my array into five fields in a database
>>so I have
>>
>>
>>DIMENSION loanguarantors(1)
>>loanguarantors(1)=" "
>>
>><pre>
>>SELECT name FROM mainbase!v_client  WHERE clienttype<>"B" INTO ARRAY Indiv
>>Display memory
>>
>>
>>So why doesnt my last value show it self.
>>like if i add PEter...its only going to show if i add susan and susan will only show in memory if i add felix and so on
>
>Try
>
>>
>>SELECT name FROM mainbase!v_client  WITH (BUFFERING = .t.) WHERE clienttype<>"B" INTO ARRAY Indiv
>>Display memory
>>
>Because without the buffering clause, VFP SQL will take records from disk, and you seem to have row buffering on the view - so the last record added is still in the buffer but not on disk (if you had table buffering, none of them would be until you explicitly tableupdate() the buffered records).
>
>For the opposite - what the thread title says - append from array, the array needs to be two-dimensional.

it does the same thing:(
Previous
Reply
Map
View

Click here to load this message in the networking platform