Nel caso di una stringa costituita da più caratteri separati da un separatore, ex :
STRINGA = Uno;due;ciao;forse
Per recuperare la serie di caratteri presente all'interno al terzo separatore si può usare il seguente comando :
Result = ConPeek( Str2Con(Stringa, ";"), 3);
Wednesday, August 27, 2008
Sunday, January 13, 2008
Change Tables SystemFields
MyTable xyz;
SystemSequence obj;
;
obj = new SystemSequence();
obj.SuspendRecIDs(tablenum(MyTable));
MyTable.overwriteSystemFields(TRUE); // dont know if this is required
MyTable.clear;
// Important is not use the fieldname directly to avoid compile error.
MyTable.( fieldname2id( TableNum(MyTable), "RecId") ) = 1111;
...
MyTable.insert;
obj.removeRecIDSuspension(tablenum(MyTable));
SystemSequence obj;
;
obj = new SystemSequence();
obj.SuspendRecIDs(tablenum(MyTable));
MyTable.overwriteSystemFields(TRUE); // dont know if this is required
MyTable.clear;
// Important is not use the fieldname directly to avoid compile error.
MyTable.( fieldname2id( TableNum(MyTable), "RecId") ) = 1111;
...
MyTable.insert;
obj.removeRecIDSuspension(tablenum(MyTable));
Subscribe to:
Posts (Atom)