Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 29/10/2004 @ 21:46 par aldweb
visiteur |
Hello Daniel,
The iBAddress sample program gives a clue about the answer.
ShowRecord: 'Top field #2 set last to get focus UPDATEFIELD #4,B$ UPDATEFIELD #6,C$ UPDATEFIELD #8,D$ UPDATETEXT #10,E$ UPDATEFIELD #13,F$ J$=STR$(I,0)+"/"+STR$(K,0) UPDATELABEL #17,J$ 'Top field #2 set last to get focus UPDATEFIELD #2,A$ RETURN
It is even the only comment I inserted in the sample programs!
Indeed, the focus is always set to the last field, either created or updated. Would you wish to force the focus to one field, here is way to do it (I assume in this sample code that the field was already created):
B$=FIELD$(#4) : UPDATEFIELD #4,B$
This preserves the value currently stored in the field.
Cheers,
@+ aldweb |