Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5441
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: DBServer Access Method |
| Date | 2013-07-03 12:58 +0200 |
| Message-ID | <b3ieepFmd7qU1@mid.individual.net> (permalink) |
| References | <e7d0b548-8548-47a5-89e5-0d36f33c6719@googlegroups.com> |
Hi Mike, > I have a function that takes a string parameter which can be a > fieldname or access method I want to retrieve the field value or > access value > > IF !Empty(oS2) .and. oS2:FieldPos(cFld) > 0 .or. IsAccess(oS2, > String2Symbol(cFld)) uValue := oS2:FieldGet(cFld) //crashes if > IsAccess > ELSE > uValue := "" > ENDIF > It must be possible to execute the access but I can't think how. try this:; symField := String2Symbol( cFld ) do case case IsAccess( oS2, symField ) uValue := IVarGet( oS2, symField ) case oS2:FieldPos( symField ) > 0 uValue := oS2:FieldGet( symField ) endcase HTH Wolfgang --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
DBServer Access Method MikeScholl@btinternet.com - 2013-07-03 03:09 -0700
Re: DBServer Access Method "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-07-03 12:58 +0200
Re: DBServer Access Method Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-07-03 15:54 +0200
Re: DBServer Access Method "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-07-03 16:57 +0200
Re: DBServer Access Method Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-07-03 13:05 +0200
Re: DBServer Access Method D.J.W. van Kooten <public@ic2remove.this.com> - 2013-07-03 13:12 +0200
Re: DBServer Access Method Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-07-03 14:32 +0200
Re: DBServer Access Method D.J.W. van Kooten <public@ic2remove.this.com> - 2013-07-03 15:27 +0200
Re: DBServer Access Method MikeScholl@btinternet.com - 2013-07-03 09:58 -0700
csiph-web